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 b1a1ab778..2e483e4e7 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,32 +261,32 @@ td.section { generated on - 2022-07-14 14:33:57.74529 + 2022-07-15 16:41:11.765867 last flyway file - V120__remove_ofy_key_fields.sql + V121__drop_sql_checkpoint_and_txn.sql

 

 

- + SchemaCrawler_Diagram - - + + generated by - + SchemaCrawler 16.10.1 - + generated on - - 2022-07-14 14:33:57.74529 + + 2022-07-15 16:41:11.765867 - + allocationtoken_a08ccbef @@ -1260,7 +1260,7 @@ td.section { fk_domain_transfer_losing_registrar_id - + tld_f1fa57e2 @@ -3071,71 +3071,26 @@ td.section { text not null - - - sqlreplaycheckpoint_342081b3 - - - public.SqlReplayCheckpoint - - - - [table] - - - id - - - - - int8 not null - - - + tmchcrl_d282355 - - + + public.TmchCrl - - + + [table] - + id - + - + int8 not null - - - - transaction_d50389d4 - - - public.Transaction - - - - [table] - - - id - - - - - bigserial not null - - - - - auto-incremented - - + @@ -6760,36 +6715,6 @@ td.section {

 

- - - - - - - - - - - - - - - - - - - - - - - - - - - -
public.SqlReplayCheckpoint [table] -
idint8 not null
Primary Key
SqlReplayCheckpoint_pkey[primary key]
id
-

 

@@ -6880,41 +6805,6 @@ td.section {
public.Tld [table]

 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
public.Transaction [table] -
idbigserial not null
auto-incremented
Primary Key
Transaction_pkey[primary key]
id
-

 

\ No newline at end of file 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 546525d72..169372b50 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,19 +261,19 @@ td.section { generated on - 2022-07-14 14:33:54.410486 + 2022-07-15 16:41:09.696997 last flyway file - V120__remove_ofy_key_fields.sql + V121__drop_sql_checkpoint_and_txn.sql

 

 

- + SchemaCrawler_Diagram - + generated by @@ -284,7 +284,7 @@ td.section { generated on - 2022-07-14 14:33:54.410486 + 2022-07-15 16:41:09.696997 @@ -2956,7 +2956,7 @@ td.section { fk_domain_transfer_losing_registrar_id - + tld_f1fa57e2 @@ -6359,111 +6359,50 @@ td.section { text not null - - - sqlreplaycheckpoint_342081b3 - - - public.SqlReplayCheckpoint - - - - [table] - - - id - - - - - int8 not null - - - last_replay_time - - - - - timestamptz not null - - - + tmchcrl_d282355 - - + + public.TmchCrl - - + + [table] - + certificate_revocations - + - + text not null - + update_timestamp - + - + timestamptz not null - + url - + - + text not null - + id - + - + int8 not null - - - - transaction_d50389d4 - - - public.Transaction - - - - [table] - - - id - - - - - bigserial not null - - - - - auto-incremented - - - contents - - - - - bytea - - + @@ -13670,59 +13609,6 @@ td.section {

 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
public.SqlReplayCheckpoint [table] -
idint8 not null
last_replay_timetimestamptz not null
Primary Key
SqlReplayCheckpoint_pkey[primary key]
id
Indexes
SqlReplayCheckpoint_pkey[unique index]
idascending
-

 

@@ -14049,64 +13935,6 @@ td.section {
public.Tld [table]

 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
public.Transaction [table] -
idbigserial not null
auto-incremented
contentsbytea
Primary Key
Transaction_pkey[primary key]
id
Indexes
Transaction_pkey[unique index]
idascending
-

 

\ No newline at end of file diff --git a/db/src/main/resources/sql/flyway.txt b/db/src/main/resources/sql/flyway.txt index b2ba68320..fc55f3e11 100644 --- a/db/src/main/resources/sql/flyway.txt +++ b/db/src/main/resources/sql/flyway.txt @@ -118,3 +118,4 @@ V117__add_billing_recurrence_last_expansion_column.sql V118__drop_billing_identifier_column_from_registrar.sql V119__token_registration_behavior.sql V120__remove_ofy_key_fields.sql +V121__drop_sql_checkpoint_and_txn.sql diff --git a/db/src/main/resources/sql/flyway/V121__drop_sql_checkpoint_and_txn.sql b/db/src/main/resources/sql/flyway/V121__drop_sql_checkpoint_and_txn.sql new file mode 100644 index 000000000..d9fdab563 --- /dev/null +++ b/db/src/main/resources/sql/flyway/V121__drop_sql_checkpoint_and_txn.sql @@ -0,0 +1,16 @@ +-- 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. + +DROP TABLE IF EXISTS "SqlReplayCheckpoint" CASCADE; +DROP TABLE IF EXISTS "Transaction" CASCADE; diff --git a/db/src/main/resources/sql/schema/nomulus.golden.sql b/db/src/main/resources/sql/schema/nomulus.golden.sql index 6c4987855..2ea9349fc 100644 --- a/db/src/main/resources/sql/schema/nomulus.golden.sql +++ b/db/src/main/resources/sql/schema/nomulus.golden.sql @@ -983,16 +983,6 @@ CREATE SEQUENCE public."SignedMarkRevocationList_revision_id_seq" ALTER SEQUENCE public."SignedMarkRevocationList_revision_id_seq" OWNED BY public."SignedMarkRevocationList".revision_id; --- --- Name: SqlReplayCheckpoint; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public."SqlReplayCheckpoint" ( - id bigint NOT NULL, - last_replay_time timestamp with time zone NOT NULL -); - - -- -- Name: Tld; Type: TABLE; Schema: public; Owner: - -- @@ -1051,35 +1041,6 @@ CREATE TABLE public."TmchCrl" ( ); --- --- Name: Transaction; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public."Transaction" ( - id bigint NOT NULL, - contents bytea -); - - --- --- Name: Transaction_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public."Transaction_id_seq" - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: Transaction_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public."Transaction_id_seq" OWNED BY public."Transaction".id; - - -- -- Name: ClaimsList revision_id; Type: DEFAULT; Schema: public; Owner: - -- @@ -1129,13 +1090,6 @@ ALTER TABLE ONLY public."SignedMarkRevocationList" ALTER COLUMN revision_id SET ALTER TABLE ONLY public."Spec11ThreatMatch" ALTER COLUMN id SET DEFAULT nextval('public."SafeBrowsingThreat_id_seq"'::regclass); --- --- Name: Transaction id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public."Transaction" ALTER COLUMN id SET DEFAULT nextval('public."Transaction_id_seq"'::regclass); - - -- -- Name: AllocationToken AllocationToken_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- @@ -1400,14 +1354,6 @@ ALTER TABLE ONLY public."SignedMarkRevocationList" ADD CONSTRAINT "SignedMarkRevocationList_pkey" PRIMARY KEY (revision_id); --- --- Name: SqlReplayCheckpoint SqlReplayCheckpoint_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public."SqlReplayCheckpoint" - ADD CONSTRAINT "SqlReplayCheckpoint_pkey" PRIMARY KEY (id); - - -- -- Name: Tld Tld_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- @@ -1424,14 +1370,6 @@ ALTER TABLE ONLY public."TmchCrl" ADD CONSTRAINT "TmchCrl_pkey" PRIMARY KEY (id); --- --- Name: Transaction Transaction_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public."Transaction" - ADD CONSTRAINT "Transaction_pkey" PRIMARY KEY (id); - - -- -- Name: RegistryLock idx_registry_lock_repo_id_revision_id; Type: CONSTRAINT; Schema: public; Owner: - --