Quoting the documentation.
SQLite3 supports specifying check constraints on the table or on the column definition. We currently only support adding a check constraint via a column definition, since the table definition approach only works at table-creation time and cannot be added at table-alter time.
Just wanted to let you know that as of SQLite 3.53.0 this is possible.
Enhance ALTER TABLE to permit adding and removing NOT NULL and CHECK constraints.
Quoting the documentation.
Just wanted to let you know that as of SQLite 3.53.0 this is possible.