Skip to content

Recommended schema migration workflow with Drizzle ORM #586

Closed Answered by orware
pablasso asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @pablasso,

For the Step 2 issue you mentioned, that seems a bit odd based on what I'm reading about the push command here in the Drizzle documentation:
https://orm.drizzle.team/kit-docs/overview#prototyping-with-db-push

Based on this section:

How it works?

When you run the command drizzle-kit push drizzle executes the following steps:

  1. It retrieves your schema from the database and converts it to the “drizzle-schema” format.
  2. The command reads all your schema files containing drizzle tables and converts them to the “drizzle-schema” format as well.
  3. Drizzle then compares the two schemas and generates a set of statements that need to be executed against your database. These statements …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by pablasso
Comment options

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