drizzle-kit generate should probably generate a comment similar to this:
/*
SQLite does not support "Drop not null from column" out of the box, we do not generate automatic migration for that, so it has to be done manually
Please refer to: https://www.techonthenet.com/sqlite/tables/alter_table.php
https://www.sqlite.org/lang_altertable.html
https://stackoverflow.com/questions/2083543/modify-a-columns-type-in-sqlite3
Due to that we don't generate migration automatically and it has to be done manually
*/
unique() ➡️ primaryKey() migration was needed because of the following issue's workaround:
What version of
drizzle-orm
are you using?0.32.1
What version of
drizzle-kit
are you using?0.23.1
Describe the Bug
Initial schema:
(Works) Dropping the unique constraint:
(Does not work) Adding a primary key constraint:
Expected behavior
drizzle-kit generate
should probably generate a comment similar to this:unique()
➡️primaryKey()
migration was needed because of the following issue's workaround:Environment & setup
No response