7

After generate and pushing migrations I see we have the option to drop migrations in the documentation. However this does nothing to the underlying db state. Running drizzle generate again also does not change it, how can we roll back or drop migrations with drizzle. What is the reccomended approach for this? Do I just need to manually go to the db and delete the tables and changes or is there any support drizzle provides in this.

1

1 Answer 1

0

try this to drop you'r migration file

npx drizzle-kit drop

or

migrations: {
    table: "migrations",
    schema: "public"
},

delete from the database migrations table where drizzle track migrations.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.