Closed tungd closed 5 years ago
Accidentally closed this. If you can provide some tests for your PR, I will merge this in.
Hi, I'm not sure what kind of test is required? The command is actually quite simple that it just get the current timestamp and create an empty file, which are all IO actions.
Closing due to inactivity.
Hi, this PR adds a convenient command to generate timestamp-prefixed migration script.
I've been using this for a couple of weeks, and in practice keeping the migration script name in order is a little bit inconvenient. We were increasing the prefix, for example
1.sql
,2.sql
.etc, however there is a case when two team members create change and the increment conflict. Django and Rails prefix their migration script name with timestamp, which I think is quite reasonable.