Fix booleans on sqlite ddl
This commit is contained in:
parent
c4a99e9ec5
commit
69811229c8
1 changed files with 4 additions and 4 deletions
|
@ -95,7 +95,7 @@ CREATE TABLE organisations (
|
||||||
postcode varchar(16),
|
postcode varchar(16),
|
||||||
country varchar(255),
|
country varchar(255),
|
||||||
sector varchar(1),
|
sector varchar(1),
|
||||||
pending boolean NOT NULL DEFAULT false,
|
pending boolean NOT NULL DEFAULT 0,
|
||||||
is_local boolean,
|
is_local boolean,
|
||||||
submitted_by_id integer,
|
submitted_by_id integer,
|
||||||
latitude decimal(8,5),
|
latitude decimal(8,5),
|
||||||
|
@ -129,7 +129,7 @@ CREATE TABLE users (
|
||||||
email text NOT NULL,
|
email text NOT NULL,
|
||||||
join_date datetime NOT NULL,
|
join_date datetime NOT NULL,
|
||||||
password varchar(100) 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
|
FOREIGN KEY (entity_id) REFERENCES entities(id) ON DELETE CASCADE
|
||||||
);
|
);
|
||||||
CREATE INDEX users_idx_entity_id ON users (entity_id);
|
CREATE INDEX users_idx_entity_id ON users (entity_id);
|
||||||
|
@ -146,7 +146,7 @@ CREATE TABLE feedback (
|
||||||
package_name varchar(255) NOT NULL,
|
package_name varchar(255) NOT NULL,
|
||||||
version_code varchar(255) NOT NULL,
|
version_code varchar(255) NOT NULL,
|
||||||
version_number 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
|
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);
|
CREATE INDEX feedback_idx_user_id ON feedback (user_id);
|
||||||
|
@ -204,7 +204,7 @@ CREATE TABLE import_values (
|
||||||
purchase_value varchar(255) NOT NULL,
|
purchase_value varchar(255) NOT NULL,
|
||||||
org_name varchar(255) NOT NULL,
|
org_name varchar(255) NOT NULL,
|
||||||
transaction_id integer,
|
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 (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
|
FOREIGN KEY (transaction_id) REFERENCES transactions(id) ON DELETE NO ACTION ON UPDATE NO ACTION
|
||||||
);
|
);
|
||||||
|
|
Reference in a new issue