sea-orm
sea-orm copied to clipboard
migration up or down to the specific version
example:
Enter at the command line: sea-orm-cli migrate up -V m20220120_000001_create_post_table
@velasco300 hello! Thank you for contribution! I think we can merge this after: https://github.com/SeaQL/sea-orm/pull/706.
Thank you
@billy1624 Thank you for your feedback. At first What I thought was that I knew clearly that I wanted to change to a certain version, but I had to understand and handle more details. For example, in shell scripts, You have to do like this: when > version then do something when < version then do something when unknown then do something, such API are not easy to use. I'll fix it later
Appreciated :)
@billy1624 I fixed it, in your case( sea-orm-cli migrate up -V m20220120_000001_create_post_table ),In my case( sea-orm-cli migrate up -V m20220120_000001_create_post_table -f )
It would be appreciated if we have some test cases around
We have upgraded clap to 3.2. We could rebase current PR onto latest master :)
- https://github.com/SeaQL/sea-orm/pull/706
Ah I don't have a clear thought / comment for this for now
upgraded
@billy1624 @tyt2y3 I think the PR is done if you want to review it.