Set default value of 1 for new not-null columns (#1097)

Use 1 since it's the constant singleton ID
This commit is contained in:
gbrodman 2021-04-20 15:25:20 -04:00 committed by GitHub
parent 844b5ab713
commit 23896b64c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -949,7 +949,7 @@ ALTER SEQUENCE public."SafeBrowsingThreat_id_seq" OWNED BY public."Spec11ThreatM
CREATE TABLE public."ServerSecret" (
secret uuid NOT NULL,
id bigint NOT NULL
id bigint DEFAULT 1 NOT NULL
);
@ -1057,7 +1057,7 @@ CREATE TABLE public."TmchCrl" (
certificate_revocations text NOT NULL,
update_timestamp timestamp with time zone NOT NULL,
url text NOT NULL,
id bigint NOT NULL
id bigint DEFAULT 1 NOT NULL
);