Replies: 2 comments
-
See also #513 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey @maku, sorry for the delay, at the moment user has to make sure the database schemas and SeaORM entities are in sync. Personally, I prefer to defined the entities in Rust and write migrate to alter the database schemas. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to understand the recommended migration workflow for a new system.
From my point of view I would like to have 1 source of truth for migration.
So I see this 2 variants:
As far as I know, none of these variants are possible using sea-orm. Is this correct?
I know about the possibility to generate the entities using sea-orm-cli.
And I tried to define a SQL String in the migration rust file. But it is not capable to handle all statements at once...
Otherwise I would have to split all changes into individual statements...
In the examples, the migration is explicitly programmed on the basis of the entities. But that doesn't seem particularly elegant to me.
It seems like an unnecessary hassle to me. Is this the recommended way to go?
But I'm missing the "big picture" in this area... What would be the best strategy?
Beta Was this translation helpful? Give feedback.
All reactions