Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpret schema migrations numerically #3344

Open
maxfilov opened this issue Apr 17, 2024 · 0 comments
Open

Interpret schema migrations numerically #3344

maxfilov opened this issue Apr 17, 2024 · 0 comments
Labels
enhancement New feature or request triage New issues that hasn't been reviewed

Comments

@maxfilov
Copy link

maxfilov commented Apr 17, 2024

What do you want to change?

The documentation states that

Warning: golang-migrate interprets migration filenames numerically. However, sqlc parses migration files in lexicographic order.

I was thinking if it possible to add some configuration key allowing sqlc to interpret migrations numerically instead? I don't know, something like

schema_ordering: numeric | lexicographic

And let it be lexicographic by default. Is there any conceptual blocker for that?

I checked the issues and could not find anything related, sorry if it's a duplicate.

What database engines need to be changed?

No database engines should be changed

What programming language backends need to be changed?

No specific backends should be changed.

@maxfilov maxfilov added enhancement New feature or request triage New issues that hasn't been reviewed labels Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage New issues that hasn't been reviewed
Projects
None yet
Development

No branches or pull requests

1 participant