From d6d4121cb395d01dc280b5bfb31586e8d4a0ca23 Mon Sep 17 00:00:00 2001 From: Tom Bloor Date: Tue, 2 Jan 2018 19:56:10 +0000 Subject: [PATCH] Fix booleans on sqlite ddl --- share/ddl/SQLite/deploy/18/001-auto.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/share/ddl/SQLite/deploy/18/001-auto.sql b/share/ddl/SQLite/deploy/18/001-auto.sql index bcdd2dd..64083e5 100644 --- a/share/ddl/SQLite/deploy/18/001-auto.sql +++ b/share/ddl/SQLite/deploy/18/001-auto.sql @@ -95,7 +95,7 @@ CREATE TABLE organisations ( postcode varchar(16), country varchar(255), sector varchar(1), - pending boolean NOT NULL DEFAULT false, + pending boolean NOT NULL DEFAULT 0, is_local boolean, submitted_by_id integer, latitude decimal(8,5), @@ -129,7 +129,7 @@ CREATE TABLE users ( email text NOT NULL, join_date datetime NOT NULL, password varchar(100) NOT NULL, - is_admin boolean NOT NULL DEFAULT false, + is_admin boolean NOT NULL DEFAULT 0, FOREIGN KEY (entity_id) REFERENCES entities(id) ON DELETE CASCADE ); CREATE INDEX users_idx_entity_id ON users (entity_id); @@ -146,7 +146,7 @@ CREATE TABLE feedback ( package_name varchar(255) NOT NULL, version_code varchar(255) NOT NULL, version_number varchar(255) NOT NULL, - actioned boolean NOT NULL DEFAULT false, + actioned boolean NOT NULL DEFAULT 0, FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE NO ACTION ON UPDATE NO ACTION ); CREATE INDEX feedback_idx_user_id ON feedback (user_id); @@ -204,7 +204,7 @@ CREATE TABLE import_values ( purchase_value varchar(255) NOT NULL, org_name varchar(255) NOT NULL, transaction_id integer, - ignore_value boolean NOT NULL DEFAULT false, + ignore_value boolean NOT NULL DEFAULT 0, FOREIGN KEY (set_id) REFERENCES import_sets(id) ON DELETE NO ACTION ON UPDATE NO ACTION, FOREIGN KEY (transaction_id) REFERENCES transactions(id) ON DELETE NO ACTION ON UPDATE NO ACTION );