You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using drizzle with mysql, and i'm trying to make development easy by using the push command as stated in the docs
I'm trying to sync my schema with the database using drizzle-kit push but the problem is that it only works when there is no data in the database. I have also tried using drizzle-kit migrate but it also won't work because the table have been created.
So what is wrong here, am i just using drizzle the wrong way or is it a bug? because i was previously using prisma and in there you can sync between the schema and the db using push command.
What version of
drizzle-orm
are you using?0.30.10
What version of
drizzle-kit
are you using?0.21.1
Describe the Bug
I'm using drizzle with mysql, and i'm trying to make development easy by using the push command as stated in the docs
I'm trying to sync my schema with the database using
drizzle-kit push
but the problem is that it only works when there is no data in the database. I have also tried usingdrizzle-kit migrate
but it also won't work because the table have been created.So what is wrong here, am i just using drizzle the wrong way or is it a bug? because i was previously using prisma and in there you can sync between the schema and the db using push command.
Also here is the error that i get:
![image](https://private-user-images.githubusercontent.com/57717531/330123903-7eb03f58-2609-4cdd-b7e7-034d9a2c28ed.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4MzE0MzYsIm5iZiI6MTcxODgzMTEzNiwicGF0aCI6Ii81NzcxNzUzMS8zMzAxMjM5MDMtN2ViMDNmNTgtMjYwOS00Y2RkLWI3ZTctMDM0ZDlhMmMyOGVkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE5VDIxMDUzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThlYWFmOWU0YjQxZDNjNWM0MmNiMzk5MjZiYjcyZmUwMzMwOTZhOWE1YWQyNmMxZjljOGFmYzhlMGE2NDk4OTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.xClFRoGVbxn0VSYTrhP7d_P2f2ubEPUMQIcFb5BNu2M)
drizzle config:
Expected behavior
It should sync between the database and the schema without any problem
Environment & setup
development environment i guess
The text was updated successfully, but these errors were encountered: