diff --git a/db/src/main/resources/sql/flyway/V92__singletons.sql b/db/src/main/resources/sql/flyway/V92__singletons.sql index eba670422..4957fcdf1 100644 --- a/db/src/main/resources/sql/flyway/V92__singletons.sql +++ b/db/src/main/resources/sql/flyway/V92__singletons.sql @@ -13,9 +13,9 @@ -- limitations under the License. ALTER TABLE "ServerSecret" DROP CONSTRAINT "ServerSecret_pkey"; -ALTER TABLE "ServerSecret" ADD COLUMN id bigint NOT NULL; +ALTER TABLE "ServerSecret" ADD COLUMN id bigint DEFAULT 1 NOT NULL; ALTER TABLE "ServerSecret" ADD PRIMARY KEY(id); ALTER TABLE "TmchCrl" DROP CONSTRAINT "TmchCrl_pkey"; -ALTER TABLE "TmchCrl" ADD COLUMN id bigint NOT NULL; +ALTER TABLE "TmchCrl" ADD COLUMN id bigint DEFAULT 1 NOT NULL; ALTER TABLE "TmchCrl" ADD PRIMARY KEY(id); diff --git a/db/src/main/resources/sql/schema/nomulus.golden.sql b/db/src/main/resources/sql/schema/nomulus.golden.sql index e85acbce3..b3a2f75fe 100644 --- a/db/src/main/resources/sql/schema/nomulus.golden.sql +++ b/db/src/main/resources/sql/schema/nomulus.golden.sql @@ -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 );