-
What is the best practice to reuse an exisitg db with tables in it? I am used to define the fields in pydal and set migrate=False. Is it similiar in Emmett? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Under default behaviour Emmett's ORM has automatic schema migrations disabled. You can safely connect to any existing database. See https://emmett.sh/docs/2.2.x/orm/migrations |
Beta Was this translation helpful? Give feedback.
-
Awesome! Sorry I did not read this yet. I had a read now. I love the approach. Just one last thing I could not find. How do I enable automatic migration if I wanted to? Thanks ! |
Beta Was this translation helpful? Give feedback.
Under default behaviour Emmett's ORM has automatic schema migrations disabled. You can safely connect to any existing database. See https://emmett.sh/docs/2.2.x/orm/migrations