drizzle-kit push tells me it found data-loss statements and asks me to confirm to delete tables : /
I don't get why this command wants to delete my tables...
All the tables in the image below belongs to my public schema.
Could anyone tell me why ?
This is basically all I'm doing...
Solution:Jump to solution
Oh, I think I found why here... https://orm.drizzle.team/docs/drizzle-kit-push#including-tables-schemas-and-extensions
Seems that defining your schema name with
pgSchema is not enough if you're doing drizzle-kit push because it defaults to public schema...4 Replies
And this...

Solution
Oh, I think I found why here... https://orm.drizzle.team/docs/drizzle-kit-push#including-tables-schemas-and-extensions
Seems that defining your schema name with
pgSchema is not enough if you're doing drizzle-kit push because it defaults to public schemaEdit: Yep... that's what was happening.
I don't yet properly understand the delete statements... But I guess that is just how the push command internally work (pull > generate alternations diff > apply).
