Skip to content
Discussion options

You must be logged in to vote

Hey @c608345, sorry for the delay. We have a CLI command to generate new migration file.

sea-orm-cli migrate generate NAME_OF_MIGRATION

# E.g. to generate `migration/src/m20220101_000001_create_table.rs` shown below
sea-orm-cli migrate generate create_table

https://www.sea-ql.org/SeaORM/docs/migration/writing-migration/#creating-migrations

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by billy1624
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants