Skip to content

Best way to modify existing models? #635

Answered by kaplanelad
a3rosol asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @a3rosol

You have two options:

  1. In case you didn't run the migration on the production, you can modify the existing migration script, delete the table from your local DB and the migration DB row and rerun the migration
  2. If it's on production, you can create another migration which modifies the table and drops/adds the column

You can follow seaorm guide here:
https://www.sea-ql.org/SeaORM/docs/next/migration/writing-migration/

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by a3rosol
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