When pushing migrations to Supabase, it skips saying the schema "drizzle" already exists.
When I update my schema and try to push the migration to Supabase, I get the following error. How can I move forward with pushing it as opposed to having it skip?
I guess part of the issue is I don't understand how migrations really work so not sure what this error is telling me is wrong. In my database, I already have 2 entries in a table called
__drizzle_migrations
under the drizzle
schema that was auto-created by drizzle-kit
when migrating the first few times
My migration file looks like this:
4 Replies
Did you find a good solution for this? 😄
hey! did you find a solution for this issue? migrations have stopped being applied to supabase it seems.
does it work locally? like do the migrations apply on the local database instance
uh that was weird, drizzle was trying to connect to the supplied database URL but the connection wasn't approved, so it started randomly applying migrations to a local postgres database running at postgresql://localhost
hence the migrations weren't applied to the supabase instance