If you want Postgres/MySQL-style strict type checking in SQLite, add STRICT at the end of CREATE TABLE! SQLite will immediately reject mismatched types with an error. Allowed column types in STRICT tables are INT, INTEGER, REAL, TEXT, BLOB, and ANY.
ADVERTISEMENT