diff --git a/db/src/main/resources/sql/flyway/V40__spec11threatmatch_remove_registrar_foreign_key.sql b/db/src/main/resources/sql/flyway/V40__spec11threatmatch_remove_registrar_foreign_key.sql new file mode 100644 index 000000000..60bfe93c6 --- /dev/null +++ b/db/src/main/resources/sql/flyway/V40__spec11threatmatch_remove_registrar_foreign_key.sql @@ -0,0 +1,16 @@ +-- Copyright 2020 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. + +alter table if exists "Spec11ThreatMatch" + drop constraint "fk_safebrowsing_threat_registrar_id"; diff --git a/db/src/main/resources/sql/schema/nomulus.golden.sql b/db/src/main/resources/sql/schema/nomulus.golden.sql index ca5a12da6..0933222d8 100644 --- a/db/src/main/resources/sql/schema/nomulus.golden.sql +++ b/db/src/main/resources/sql/schema/nomulus.golden.sql @@ -1596,14 +1596,6 @@ ALTER TABLE ONLY public."Spec11ThreatMatch" ADD CONSTRAINT fk_safebrowsing_threat_domain_repo_id FOREIGN KEY (domain_repo_id) REFERENCES public."Domain"(repo_id); --- --- Name: Spec11ThreatMatch fk_safebrowsing_threat_registrar_id; Type: FK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public."Spec11ThreatMatch" - ADD CONSTRAINT fk_safebrowsing_threat_registrar_id FOREIGN KEY (registrar_id) REFERENCES public."Registrar"(registrar_id); - - -- -- Name: DomainHost fkfmi7bdink53swivs390m2btxg; Type: FK CONSTRAINT; Schema: public; Owner: - --