Not clear what happens during migrate
I have a sandbox project and have properly created a migrate that created the initial schema, and applied it. Then I added a column to my
schema.ts
and generated the migration again, making a 0002
sql file. Then when applying that, the schema doesn't upgrade.
I only have two ways to see what happened, the console says:
And then I check my drizzle
__drizzle_migrations
table, which has one row:
Is there a way I can troubleshoot why the migration doesn't appear to have been applied, and what SQL statements and/or files or running, or any type of logging beyond what's above?3 Replies
any chance you found an answer elsewhere?
not sure it is the reason the migration is not running, but check the journal.json for the
when
value. that correlates to the created_at
in drizzle_migrations table, and wont run if smaller than existingCan you show the generated migration file after the second schema change?