diff --git a/db/src/main/resources/sql/er_diagram/brief_er_diagram.html b/db/src/main/resources/sql/er_diagram/brief_er_diagram.html index 52f188c94..b47dae1cb 100644 --- a/db/src/main/resources/sql/er_diagram/brief_er_diagram.html +++ b/db/src/main/resources/sql/er_diagram/brief_er_diagram.html @@ -261,11 +261,11 @@ td.section { generated on - 2022-09-14 21:40:35.281416 + 2022-11-01 21:02:22.179272 last flyway file - V128__fix_package_promotion_id.sql + V129__create_allocateId_sequence_alternative.sql @@ -284,7 +284,7 @@ td.section { generated on - 2022-09-14 21:40:35.281416 + 2022-11-01 21:02:22.179272 diff --git a/db/src/main/resources/sql/er_diagram/full_er_diagram.html b/db/src/main/resources/sql/er_diagram/full_er_diagram.html index 767e64384..13b92ee4f 100644 --- a/db/src/main/resources/sql/er_diagram/full_er_diagram.html +++ b/db/src/main/resources/sql/er_diagram/full_er_diagram.html @@ -261,11 +261,11 @@ td.section { generated on - 2022-09-14 21:40:33.388526 + 2022-11-01 21:02:18.715344 last flyway file - V128__fix_package_promotion_id.sql + V129__create_allocateId_sequence_alternative.sql @@ -284,7 +284,7 @@ td.section { generated on - 2022-09-14 21:40:33.388526 + 2022-11-01 21:02:18.715344 diff --git a/db/src/main/resources/sql/flyway.txt b/db/src/main/resources/sql/flyway.txt index 0ba260bb0..e058fba49 100644 --- a/db/src/main/resources/sql/flyway.txt +++ b/db/src/main/resources/sql/flyway.txt @@ -126,3 +126,4 @@ V125__create_package_promotion.sql V126__drop_autorenew_poll_message_history_id_column_in_domain_table.sql V127__fix_user.sql V128__fix_package_promotion_id.sql +V129__create_allocateId_sequence_alternative.sql diff --git a/db/src/main/resources/sql/flyway/V129__create_allocateId_sequence_alternative.sql b/db/src/main/resources/sql/flyway/V129__create_allocateId_sequence_alternative.sql new file mode 100644 index 000000000..554b830b7 --- /dev/null +++ b/db/src/main/resources/sql/flyway/V129__create_allocateId_sequence_alternative.sql @@ -0,0 +1,21 @@ +-- Copyright 2022 The Nomulus Authors. All Rights Reserved. +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. + +CREATE SEQUENCE public."project_wide_unique_id_seq" + START WITH 59880480006 + INCREMENT BY 1 + MINVALUE 59880480005 + NO MAXVALUE + CACHE 10; + diff --git a/db/src/main/resources/sql/schema/nomulus.golden.sql b/db/src/main/resources/sql/schema/nomulus.golden.sql index f10f49822..1111f9ecb 100644 --- a/db/src/main/resources/sql/schema/nomulus.golden.sql +++ b/db/src/main/resources/sql/schema/nomulus.golden.sql @@ -1109,6 +1109,18 @@ CREATE SEQUENCE public."User_id_seq" ALTER SEQUENCE public."User_id_seq" OWNED BY public."User".id; +-- +-- Name: project_wide_unique_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_wide_unique_id_seq + START WITH 59880480006 + INCREMENT BY 1 + MINVALUE 59880480005 + NO MAXVALUE + CACHE 10; + + -- -- Name: ClaimsList revision_id; Type: DEFAULT; Schema: public; Owner: - --