Drizzle workflow on schema modification

Hi, can someone explain me the process to follow when we modify the schema to push modifications to database please. I'm working on 2 computers, and when i modify schema like adding constraints, when i go to my second computer, i run drizzle-kit introspect:mysql and push:mysql but no modifications are added, also if i drop my table and recreate it with drizzle push:mysl, constraints are not added to my tables. I think feel verry dumb because i can't understand how to work with drizzle when we make modifications. also when i use generate:mysql there is no changes
2 Replies
Angelelz
Angelelz14mo ago
Do you work on the same database when you change computers? You would normally commit your code changes somewhere, and sync both your computers that way If you have the same database, you don't need to push twice, just sync your code If you're working on two different databases then you would push your changes to each
Hugo
HugoOP14mo ago
Hi, sorry, no each database are on local i push my code on github
Want results from more Discord servers?
Add your server