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 have verified that the bug I'm about to report hasn't been filed before.
What version of drizzle-orm are you using?
0.36.4
What version of drizzle-kit are you using?
0.28.1
Other packages
No response
Describe the Bug
Generated migrations always creates a _new_ tables and trying to migrate data and drop tables after that. In my case I have very simple structure of users and accounts, account has userId which is relation to users. But when there are data and I am trying to add a new column, which doesn't have an impact to data integrity, so could someone explain how is the migration resolved?
I've just moved 'hashed_password' from users to accounts which is nullable, but this is how the migration looks like
Report hasn't been filed before.
What version of
drizzle-orm
are you using?0.36.4
What version of
drizzle-kit
are you using?0.28.1
Other packages
No response
Describe the Bug
Generated migrations always creates a
_new_
tables and trying to migrate data and drop tables after that. In my case I have very simple structure of users and accounts,account
hasuserId
which is relation to users. But when there are data and I am trying to add a new column, which doesn't have an impact to data integrity, so could someone explain how is the migration resolved?I've just moved 'hashed_password' from
users
toaccounts
which is nullable, but this is how the migration looks likeSo because there is DROP of users table I am getting
It seems that the PRAGMA is enabled to early, but when I move it to the end it also doesn't work and raise error with FOREIGN KEY..
Thanks for clarification
The text was updated successfully, but these errors were encountered: