Order of operations during drizzle-kit push #4516
Unanswered
shubham151
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We're using
Drizzle ORM
in our project and had a question regarding the deployment sequence that runs when we execute drizzle-kit push.We'd like to understand the exact order in which different database schema elements are applied. Specifically:
Are tables created first?
When are indexes, constraints, and foreign keys added?
Are views created after all tables and dependencies are in place?
How does Drizzle handle situations like circular foreign key constraints?
Understanding this sequence will help us structure our schema definitions and migrations more reliably.
Beta Was this translation helpful? Give feedback.
All reactions