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.38.2
What version of drizzle-kit are you using?
0.30.1
Other packages
No response
Describe the Bug
What is the undesired behavior?
In schema file, when a column's name is changed and it's config is also changed like data type, not null constraint etc.; running drizzle-kit generate and selecting renamed column option only includes rename column sql command in generated migration file. sql commands for data type changes and adding/removing constraints are not included. generated snapshot correctly reflects new schema though. I am using 'postgresql' dialect.
What are the steps to reproduce it?
in schema file; change column name and change something in it's value like data type or add/remove not null constraint.
Run drizzle-kit generate; select renamed column option.
check generated sql migration file; it only includes rename column command and not other changes for the column.
What is the desired result?
migration file should include sql commands for column data type and constraint changes along with rename command.
The text was updated successfully, but these errors were encountered:
Also, running drizzle-kit check after this says everything's fine. Shouldn't it detect that migration file is not correctly representing diff between two snapshot.json ?
I think there should be some way to verify the correctness of migration file in cases when generated migration file is not fully correct or when we manually modify it after drizzle-kit generate.
Report hasn't been filed before.
What version of
drizzle-orm
are you using?0.38.2
What version of
drizzle-kit
are you using?0.30.1
Other packages
No response
Describe the Bug
What is the undesired behavior?
In schema file, when a column's name is changed and it's config is also changed like data type, not null constraint etc.; running drizzle-kit generate and selecting renamed column option only includes rename column sql command in generated migration file. sql commands for data type changes and adding/removing constraints are not included. generated snapshot correctly reflects new schema though. I am using 'postgresql' dialect.
What are the steps to reproduce it?
What is the desired result?
migration file should include sql commands for column data type and constraint changes along with rename command.
The text was updated successfully, but these errors were encountered: