__old_push table
Hi,
I just ran a
pnpm drizzle-kit push:sqlite
to push some schema changes to my turso db. I basically added a single column to a table with a default value. I then removed the column and pushed again. Now I have a new column __old_push and it seems I'm stuck in an intermediate state. Is there a fix for this?3 Replies
Hey @wylex Could you show your schema please?
this is the table I modified:
As I said, I added a new field
slug: text("slug").notNull().default("a")
. then I tried to remove the default()
and I got a
SQLite error: FOREIGN KEY constraint failedThen I tried to put it back and execute the push again and started to see the warning:
Warning Found data-loss statements: · You're about to delete __old_push_unidad_poblacional table with 59693 items
Got it, could you show
municipio
table please?