ER_TABLE_EXISTS_ERROR

Can someone explain me what is the proper workflow? 1. change schema.ts (add another column to table) 2. generate migration 3. migrate ER_TABLE_EXISTS_ERROR Why? I'm using drizzle with planetscale
4 Replies
Angelelz
Angelelz2y ago
I believe you dont use migrations in planetscale they have a branching system, right? You can just push
kstulgys
kstulgysOP2y ago
yes, thank you for confirmation
Elv
Elv2y ago
Sorry to dig up this thread, but what about if you are using regular mysql ? I have the exact same issue
Angelelz
Angelelz2y ago
There are so many edge cases, you might have some issues with the migrations especially if you're making changes to your tables. I'd suggest opening opening the migration file and edit it as needed.

Did you find this page helpful?