Change column def so it works on pgsql & sqlite

Now I remember discovering previously there was no way to make boolean
columns work
This commit is contained in:
David Baker 2018-07-19 10:28:26 +01:00
parent 45d06c754a
commit 022469d819

View file

@ -20,4 +20,4 @@
* so we can't easily join between the two tables. Plus, the batch number
* realy ought to represent data in this table that has changed.
*/
ALTER TABLE profiles ADD COLUMN active BOOLEAN DEFAULT 1 NOT NULL;
ALTER TABLE profiles ADD COLUMN active SMALLINT DEFAULT 1 NOT NULL;