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
After generating the SQL generation command with drizzle-kit generate the following SQL file is generated:
CREATETABLE `lorem` (
`lorem`text
);
--> statement-breakpoint/* SQLite does not support "Set not null to 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*/
Why is there an error message for setting not null to a column when there's no NOT NULL constraint applied ?
Thank you for taking the time to answer
Expected behavior
Should not the migration file be valid for SQLite?
What version of
drizzle-orm
are you using?0.31.2
What version of
drizzle-kit
are you using?0.22.7
Describe the Bug
Here is the schema migration I want to test
After generating the SQL generation command with
drizzle-kit generate
the following SQL file is generated:Why is there an error message for setting not null to a column when there's no NOT NULL constraint applied ?
Thank you for taking the time to answer
Expected behavior
Should not the migration file be valid for SQLite?
Environment & setup
Node v20.14
drizzle-kit v0.22.7
drizzle-orm v0.31.2
The text was updated successfully, but these errors were encountered: