-
If I have the |
Beta Was this translation helpful? Give feedback.
Answered by
erikbra
Mar 22, 2024
Replies: 1 comment 1 reply
-
@erikbra could you point me to documentation about this? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, sorry if this is not clear in the documentation. Please feel free to submit a PR on the documentation if you have any suggestions to how you could get startet more easily.
It is mentioned, albeit only in passing, here: https://erikbra.github.io/grate/getting-started/#how-it-works
And, to make it evident: YES, the order of execution is alphabetical :)
Of course, your requirements may vary, but I usually number the scripts in the one-time folders, like this:
0001_create_schema_X.sql
0002_create_table_A.sql
0003_create_table_B.sql
0004_add_missing_column_Y_to_table_A.sql
etc. You might not have the need to grow above 999 files before you start using other characters, so a pattern of
001_…