I made a change, yet generate says "No schema changes, nothing to migrate"
i added a column to a table
balance: integer("balance")
and drizzle-kit generate:pg
generated the correct migration:
ALTER TABLE "mytable" ADD COLUMN "balance" integer;
then i went and backfilled in the values into the mytable since i really wanted it to be notNull().
then I came back and added .notNull():
balance: integer("balance").notNull()
when I rerun drizzle-kit generate:pg
it says "No schema changes, nothing to migrate"
is this a bug?
drizzle-kit 0.21.23 Replies
I get the same issue
I just started playing with Drizzle using neon, and got the same issue. Created a few new neon branches on an empty DB and nothing. 0.26.2
Also, I found this: https://github.com/drizzle-team/drizzle-orm/issues/1773#issuecomment-1884681853 fixed my issue
GitHub
[BUG]: No changes when trying to apply drizzle-kit push · Issue #17...
What version of drizzle-orm are you using? 0.29.3 What version of drizzle-kit are you using? 0.20.10 Describe the Bug I'm trying to apply migration to the database using drizzle-kit push:pg but...