Best way to modify existing models? #635
-
I'm completely new to loco and was wondering how I can add or remove fields from existing models. Say I'd like to add "language_id" to users. The docs describe how to create new models but not necessarily how to modify them. This includes deletion: how can I safely delete "notes" for example? Is there a cli command to do this or do I have to manually edit migrations? |
Beta Was this translation helpful? Give feedback.
Answered by
kaplanelad
Jul 17, 2024
Replies: 1 comment
-
Hey @a3rosol You have two options:
You can follow seaorm guide here: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
a3rosol
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @a3rosol
You have two options:
You can follow seaorm guide here:
https://www.sea-ql.org/SeaORM/docs/next/migration/writing-migration/