Closed helje5 closed 2 years ago
Implemented, and seems to work fine. "INTEGER" and "INT" are now detected as separate schema types (but are both mapped to .integer properties).
Only "INTEGER" columns are setup with the autogenerated key behaviour (i.e. are ignored at INSERT time).
Lighter currently considers all int pkeys as database generated, but that is only true if they are spelled explicitly as
INTEGER
(case doesn't matter). I.e. justid INT PRIMARY KEY
doesn't actually work. We should replicate the SQLite behaviour and only consider a property as autogenerated if it matches the requirements.This probably warrants a new type or marker in SQLite3Schema.