DrizzleORM drops tables already in database when trying to add new tables?

Im trying to add some new tables to the DB with drizzle, but the db already had data in it through prisma. trying to push the schema is asking me to drop all of those tables? Anyone know why?
2 Replies
Andrii Sherman
Andrii Sherman12mo ago
You are using push command, that will just sync your code schema with database. Anything different in database from schema will be changed I guess you want to use generate command and then use migrate() function from drizzle orm to run those migrations
AdmiralGeneralAladeen
ah makes sense thank you