Change postgres upgrade script to use proper boolean defaults
This commit is contained in:
parent
2320ec7e23
commit
f3335810b3
1 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ CREATE TABLE "organisations" (
|
||||||
"postcode" character varying(16),
|
"postcode" character varying(16),
|
||||||
"country" character varying(255),
|
"country" character varying(255),
|
||||||
"sector" character varying(1),
|
"sector" character varying(1),
|
||||||
"pending" boolean DEFAULT 0 NOT NULL,
|
"pending" boolean DEFAULT false NOT NULL,
|
||||||
"submitted_by_id" integer,
|
"submitted_by_id" integer,
|
||||||
PRIMARY KEY ("id")
|
PRIMARY KEY ("id")
|
||||||
);
|
);
|
||||||
|
@ -59,7 +59,7 @@ CREATE TABLE "users" (
|
||||||
"email" text NOT NULL,
|
"email" text NOT NULL,
|
||||||
"join_date" timestamp NOT NULL,
|
"join_date" timestamp NOT NULL,
|
||||||
"password" character varying(100) NOT NULL,
|
"password" character varying(100) NOT NULL,
|
||||||
"is_admin" boolean DEFAULT 0 NOT NULL,
|
"is_admin" boolean DEFAULT false NOT NULL,
|
||||||
PRIMARY KEY ("id"),
|
PRIMARY KEY ("id"),
|
||||||
CONSTRAINT "users_email" UNIQUE ("email")
|
CONSTRAINT "users_email" UNIQUE ("email")
|
||||||
);
|
);
|
||||||
|
|
Reference in a new issue