-
I am trying to get the migrations working - the ideal result would be the app upon starting to check if the database exists (and if not, then create it) and then run all the migrations on it automatically before starting to accept inputs. I have created migrations directory with an SQL script named
The table
The checksum is obviously wrong and I now get I have a hard time finding some good working example or documentation for this. I tried to look also at the tests, but there dos not seem to be much there neither (there seems to be some postgres docker container there, but migrations do not seem to connect to the database at all). Can someone please point me to some docs or even better to a working code example? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
So, to answer my own question, it turned out to be pretty stupid problem on my side: I figured out all the structure of the migration scripts required by the I have submitted #1054 to add the documentation about this. |
Beta Was this translation helpful? Give feedback.
So, to answer my own question, it turned out to be pretty stupid problem on my side: I figured out all the structure of the migration scripts required by the
Migrator
apart of simple fact that the numbering has to start at1
(as opposed to at0
).I have submitted #1054 to add the documentation about this.