sqlc icon indicating copy to clipboard operation
sqlc copied to clipboard

Interpret schema migrations numerically

Open maxfilov opened this issue 1 year ago • 0 comments

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 avatar Apr 17 '24 18:04 maxfilov