Skip to content

Commit

Permalink
Merge pull request #1 from acoustid/schema-change-2023-05
Browse files Browse the repository at this point in the history
Schema change 2023 05
  • Loading branch information
lalinsky authored May 22, 2023
2 parents 9074c2e + c4dcc4a commit d32e188
Show file tree
Hide file tree
Showing 56 changed files with 1,262 additions and 491 deletions.
8 changes: 8 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@ When the MusicBrainz database schema changes, the replication will stop working.
This is usually announced on the `MusicBrainz blog <http://blog.musicbrainz.org/>`__.
When it happens, you need to upgrade the database.

Release 2023-05-22 (28)
~~~~~~~~~~~~~~~~~~~~~~~

Run the upgrade scripts::

mbslave psql -f updates/schema-change/28.all.sql
echo 'UPDATE replication_control SET current_schema_sequence = 28;' | mbslave psql

Release 2022-05-16 (27)
~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
50 changes: 10 additions & 40 deletions mbslave/sql/CreateFKConstraints.sql
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,16 @@ ALTER TABLE edit_note
FOREIGN KEY (edit)
REFERENCES edit(id);

ALTER TABLE edit_note_change
ADD CONSTRAINT edit_note_change_fk_edit_note
FOREIGN KEY (edit_note)
REFERENCES edit_note(id);

ALTER TABLE edit_note_change
ADD CONSTRAINT edit_note_change_fk_change_editor
FOREIGN KEY (change_editor)
REFERENCES editor(id);

ALTER TABLE edit_note_recipient
ADD CONSTRAINT edit_note_recipient_fk_recipient
FOREIGN KEY (recipient)
Expand Down Expand Up @@ -877,46 +887,6 @@ ALTER TABLE editor_subscribe_series_deleted
FOREIGN KEY (deleted_by)
REFERENCES edit(id);

ALTER TABLE editor_watch_artist
ADD CONSTRAINT editor_watch_artist_fk_artist
FOREIGN KEY (artist)
REFERENCES artist(id)
ON DELETE CASCADE;

ALTER TABLE editor_watch_artist
ADD CONSTRAINT editor_watch_artist_fk_editor
FOREIGN KEY (editor)
REFERENCES editor(id)
ON DELETE CASCADE;

ALTER TABLE editor_watch_preferences
ADD CONSTRAINT editor_watch_preferences_fk_editor
FOREIGN KEY (editor)
REFERENCES editor(id)
ON DELETE CASCADE;

ALTER TABLE editor_watch_release_group_type
ADD CONSTRAINT editor_watch_release_group_type_fk_editor
FOREIGN KEY (editor)
REFERENCES editor(id)
ON DELETE CASCADE;

ALTER TABLE editor_watch_release_group_type
ADD CONSTRAINT editor_watch_release_group_type_fk_release_group_type
FOREIGN KEY (release_group_type)
REFERENCES release_group_primary_type(id);

ALTER TABLE editor_watch_release_status
ADD CONSTRAINT editor_watch_release_status_fk_editor
FOREIGN KEY (editor)
REFERENCES editor(id)
ON DELETE CASCADE;

ALTER TABLE editor_watch_release_status
ADD CONSTRAINT editor_watch_release_status_fk_release_status
FOREIGN KEY (release_status)
REFERENCES release_status(id);

ALTER TABLE event
ADD CONSTRAINT event_fk_type
FOREIGN KEY (type)
Expand Down
43 changes: 23 additions & 20 deletions mbslave/sql/CreateFunctions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,12 @@ DECLARE
ref_count integer;
BEGIN
-- decrement ref_count for the old name,
-- or delete it if ref_count would drop to 0
-- or prepare it for deletion if ref_count would drop to 0
EXECUTE 'SELECT ref_count FROM ' || tbl || ' WHERE id = ' || row_id || ' FOR UPDATE' INTO ref_count;
IF ref_count <= val THEN
EXECUTE 'DELETE FROM ' || tbl || ' WHERE id = ' || row_id;
ELSE
EXECUTE 'UPDATE ' || tbl || ' SET ref_count = ref_count - ' || val || ' WHERE id = ' || row_id;
EXECUTE 'INSERT INTO unreferenced_row_log (table_name, row_id) VALUES ($1, $2)' USING tbl, row_id;
END IF;
EXECUTE 'UPDATE ' || tbl || ' SET ref_count = ref_count - ' || val || ' WHERE id = ' || row_id;
RETURN;
END;
$$ LANGUAGE 'plpgsql';
Expand Down Expand Up @@ -204,21 +203,6 @@ $$ LANGUAGE 'plpgsql';
-- editor triggers
-----------------------------------------------------------------------

CREATE OR REPLACE FUNCTION a_ins_editor() RETURNS trigger AS $$
BEGIN
-- add a new entry to the editor_watch_preference table
INSERT INTO editor_watch_preferences (editor) VALUES (NEW.id);

-- by default watch for new official albums
INSERT INTO editor_watch_release_group_type (editor, release_group_type)
VALUES (NEW.id, 2);
INSERT INTO editor_watch_release_status (editor, release_status)
VALUES (NEW.id, 1);

RETURN NULL;
END;
$$ LANGUAGE 'plpgsql';

CREATE OR REPLACE FUNCTION check_editor_name() RETURNS trigger AS $$
BEGIN
IF (SELECT 1 FROM old_editor_name WHERE lower(name) = lower(NEW.name))
Expand Down Expand Up @@ -495,6 +479,19 @@ BEGIN
PERFORM dec_ref_count('artist_credit', OLD.artist_credit, 1);
PERFORM inc_ref_count('artist_credit', NEW.artist_credit, 1);
END IF;
IF (
NEW.status IS DISTINCT FROM OLD.status AND
(NEW.status = 6 OR OLD.status = 6)
) THEN
PERFORM set_release_first_release_date(NEW.id);

-- avoid executing it twice as this will be executed a few lines below if RG changes
IF NEW.release_group = OLD.release_group THEN
PERFORM set_release_group_first_release_date(NEW.release_group);
END IF;

PERFORM set_releases_recordings_first_release_dates(ARRAY[NEW.id]);
END IF;
IF NEW.release_group != OLD.release_group THEN
-- release group is changed, decrement release_count in the original RG, increment in the new one
UPDATE release_group_meta SET release_count = release_count - 1 WHERE id = OLD.release_group;
Expand Down Expand Up @@ -1082,7 +1079,13 @@ BEGIN
SELECT release, date_year, date_month, date_day FROM release_unknown_country
) all_dates
WHERE ' || condition ||
' ORDER BY release, year NULLS LAST, month NULLS LAST, day NULLS LAST';
' AND NOT EXISTS (
SELECT TRUE
FROM release
WHERE release.id = all_dates.release
AND status = 6
)
ORDER BY release, year NULLS LAST, month NULLS LAST, day NULLS LAST';
END;
$$ LANGUAGE 'plpgsql' STRICT;

Expand Down
4 changes: 4 additions & 0 deletions mbslave/sql/CreateIndexes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ CREATE INDEX edit_url_idx ON edit_url (url);
CREATE INDEX edit_note_idx_edit ON edit_note (edit);
CREATE INDEX edit_note_idx_editor ON edit_note (editor);

CREATE INDEX edit_note_change_idx_edit_note ON edit_note_change (edit_note);

CREATE INDEX edit_note_recipient_idx_recipient ON edit_note_recipient (recipient);

CREATE UNIQUE INDEX event_idx_gid ON event (gid);
Expand Down Expand Up @@ -671,6 +673,8 @@ CREATE INDEX track_raw_idx_release ON track_raw (release);
CREATE INDEX medium_idx_track_count ON medium (track_count);
CREATE INDEX medium_index_idx ON medium_index USING gist (toc);

CREATE INDEX unreferenced_row_log_idx_inserted ON unreferenced_row_log USING BRIN (inserted);

CREATE UNIQUE INDEX url_idx_gid ON url (gid);
CREATE UNIQUE INDEX url_idx_url ON url (url);

Expand Down
6 changes: 2 additions & 4 deletions mbslave/sql/CreatePrimaryKeys.sql
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ ALTER TABLE edit_instrument ADD CONSTRAINT edit_instrument_pkey PRIMARY KEY (edi
ALTER TABLE edit_label ADD CONSTRAINT edit_label_pkey PRIMARY KEY (edit, label);
ALTER TABLE edit_mood ADD CONSTRAINT edit_mood_pkey PRIMARY KEY (edit, mood);
ALTER TABLE edit_note ADD CONSTRAINT edit_note_pkey PRIMARY KEY (id);
ALTER TABLE edit_note_change ADD CONSTRAINT edit_note_change_pkey PRIMARY KEY (id);
ALTER TABLE edit_note_recipient ADD CONSTRAINT edit_note_recipient_pkey PRIMARY KEY (recipient, edit_note);
ALTER TABLE edit_place ADD CONSTRAINT edit_place_pkey PRIMARY KEY (edit, place);
ALTER TABLE edit_recording ADD CONSTRAINT edit_recording_pkey PRIMARY KEY (edit, recording);
Expand Down Expand Up @@ -90,10 +91,6 @@ ALTER TABLE editor_subscribe_label ADD CONSTRAINT editor_subscribe_label_pkey PR
ALTER TABLE editor_subscribe_label_deleted ADD CONSTRAINT editor_subscribe_label_deleted_pkey PRIMARY KEY (editor, gid);
ALTER TABLE editor_subscribe_series ADD CONSTRAINT editor_subscribe_series_pkey PRIMARY KEY (id);
ALTER TABLE editor_subscribe_series_deleted ADD CONSTRAINT editor_subscribe_series_deleted_pkey PRIMARY KEY (editor, gid);
ALTER TABLE editor_watch_artist ADD CONSTRAINT editor_watch_artist_pkey PRIMARY KEY (artist, editor);
ALTER TABLE editor_watch_preferences ADD CONSTRAINT editor_watch_preferences_pkey PRIMARY KEY (editor);
ALTER TABLE editor_watch_release_group_type ADD CONSTRAINT editor_watch_release_group_type_pkey PRIMARY KEY (editor, release_group_type);
ALTER TABLE editor_watch_release_status ADD CONSTRAINT editor_watch_release_status_pkey PRIMARY KEY (editor, release_status);
ALTER TABLE event ADD CONSTRAINT event_pkey PRIMARY KEY (id);
ALTER TABLE event_alias ADD CONSTRAINT event_alias_pkey PRIMARY KEY (id);
ALTER TABLE event_alias_type ADD CONSTRAINT event_alias_type_pkey PRIMARY KEY (id);
Expand Down Expand Up @@ -350,6 +347,7 @@ ALTER TABLE tag_relation ADD CONSTRAINT tag_relation_pkey PRIMARY KEY (tag1, tag
ALTER TABLE track ADD CONSTRAINT track_pkey PRIMARY KEY (id);
ALTER TABLE track_gid_redirect ADD CONSTRAINT track_gid_redirect_pkey PRIMARY KEY (gid);
ALTER TABLE track_raw ADD CONSTRAINT track_raw_pkey PRIMARY KEY (id);
ALTER TABLE unreferenced_row_log ADD CONSTRAINT unreferenced_row_log_pkey PRIMARY KEY (table_name, row_id);
ALTER TABLE url ADD CONSTRAINT url_pkey PRIMARY KEY (id);
ALTER TABLE url_gid_redirect ADD CONSTRAINT url_gid_redirect_pkey PRIMARY KEY (gid);
ALTER TABLE vote ADD CONSTRAINT vote_pkey PRIMARY KEY (id);
Expand Down
45 changes: 18 additions & 27 deletions mbslave/sql/CreateTables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,6 @@ CREATE TABLE cdtoc ( -- replicate
track_count INTEGER NOT NULL,
leadout_offset INTEGER NOT NULL,
track_offset INTEGER[] NOT NULL,
degraded BOOLEAN NOT NULL DEFAULT FALSE,
created TIMESTAMP WITH TIME ZONE DEFAULT NOW()
);

Expand Down Expand Up @@ -576,6 +575,18 @@ CREATE TABLE edit_note
post_time TIMESTAMP WITH TIME ZONE DEFAULT NOW()
);

CREATE TABLE edit_note_change
(
id SERIAL, -- PK
status edit_note_status,
edit_note INTEGER NOT NULL, -- references edit_note.id
change_editor INTEGER NOT NULL, -- references editor.id
change_time TIMESTAMP WITH TIME ZONE DEFAULT NOW(),
old_note TEXT NOT NULL,
new_note TEXT NOT NULL,
reason TEXT NOT NULL DEFAULT ''
);

CREATE TABLE edit_note_recipient (
recipient INTEGER NOT NULL, -- PK, references editor.id
edit_note INTEGER NOT NULL -- PK, references edit_note.id
Expand Down Expand Up @@ -2881,32 +2892,6 @@ CREATE TABLE editor_oauth_token
)
);

CREATE TABLE editor_watch_preferences
(
editor INTEGER NOT NULL, -- PK, references editor.id CASCADE
notify_via_email BOOLEAN NOT NULL DEFAULT TRUE,
notification_timeframe INTERVAL NOT NULL DEFAULT '1 week',
last_checked TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);

CREATE TABLE editor_watch_artist
(
artist INTEGER NOT NULL, -- PK, references artist.id CASCADE
editor INTEGER NOT NULL -- PK, references editor.id CASCADE
);

CREATE TABLE editor_watch_release_group_type
(
editor INTEGER NOT NULL, -- PK, references editor.id CASCADE
release_group_type INTEGER NOT NULL -- PK, references release_group_primary_type.id
);

CREATE TABLE editor_watch_release_status
(
editor INTEGER NOT NULL, -- PK, references editor.id CASCADE
release_status INTEGER NOT NULL -- PK, references release_status.id
);

CREATE TABLE medium ( -- replicate (verbose)
id SERIAL,
release INTEGER NOT NULL, -- references release.id
Expand Down Expand Up @@ -3890,6 +3875,12 @@ CREATE TABLE medium_index ( -- replicate
toc CUBE
);

CREATE TABLE unreferenced_row_log (
table_name VARCHAR NOT NULL, -- PK
row_id INTEGER NOT NULL, -- PK
inserted TIMESTAMP WITH TIME ZONE DEFAULT NOW()
);

CREATE TABLE url ( -- replicate
id SERIAL,
gid UUID NOT NULL,
Expand Down
3 changes: 0 additions & 3 deletions mbslave/sql/CreateTriggers.sql
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ CREATE TRIGGER b_upd_artist_tag BEFORE UPDATE ON artist_tag
CREATE TRIGGER b_upd_editor BEFORE UPDATE ON editor
FOR EACH ROW EXECUTE PROCEDURE b_upd_last_updated_table();

CREATE TRIGGER a_ins_editor AFTER INSERT ON editor
FOR EACH ROW EXECUTE PROCEDURE a_ins_editor();

CREATE TRIGGER check_editor_name BEFORE UPDATE OR INSERT ON editor
FOR EACH ROW EXECUTE PROCEDURE check_editor_name();

Expand Down
2 changes: 2 additions & 0 deletions mbslave/sql/CreateTypes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ BEGIN;

CREATE TYPE cover_art_presence AS ENUM ('absent', 'present', 'darkened');

CREATE TYPE edit_note_status AS ENUM ('deleted', 'edited');

CREATE TYPE event_art_presence AS ENUM ('absent', 'present', 'darkened');

CREATE TYPE fluency AS ENUM (
Expand Down
9 changes: 2 additions & 7 deletions mbslave/sql/DropFKConstraints.sql
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ ALTER TABLE edit_mood DROP CONSTRAINT IF EXISTS edit_mood_fk_edit;
ALTER TABLE edit_mood DROP CONSTRAINT IF EXISTS edit_mood_fk_mood;
ALTER TABLE edit_note DROP CONSTRAINT IF EXISTS edit_note_fk_editor;
ALTER TABLE edit_note DROP CONSTRAINT IF EXISTS edit_note_fk_edit;
ALTER TABLE edit_note_change DROP CONSTRAINT IF EXISTS edit_note_change_fk_edit_note;
ALTER TABLE edit_note_change DROP CONSTRAINT IF EXISTS edit_note_change_fk_change_editor;
ALTER TABLE edit_note_recipient DROP CONSTRAINT IF EXISTS edit_note_recipient_fk_recipient;
ALTER TABLE edit_note_recipient DROP CONSTRAINT IF EXISTS edit_note_recipient_fk_edit_note;
ALTER TABLE edit_place DROP CONSTRAINT IF EXISTS edit_place_fk_edit;
Expand Down Expand Up @@ -172,13 +174,6 @@ ALTER TABLE editor_subscribe_series DROP CONSTRAINT IF EXISTS editor_subscribe_s
ALTER TABLE editor_subscribe_series_deleted DROP CONSTRAINT IF EXISTS editor_subscribe_series_deleted_fk_editor;
ALTER TABLE editor_subscribe_series_deleted DROP CONSTRAINT IF EXISTS editor_subscribe_series_deleted_fk_gid;
ALTER TABLE editor_subscribe_series_deleted DROP CONSTRAINT IF EXISTS editor_subscribe_series_deleted_fk_deleted_by;
ALTER TABLE editor_watch_artist DROP CONSTRAINT IF EXISTS editor_watch_artist_fk_artist;
ALTER TABLE editor_watch_artist DROP CONSTRAINT IF EXISTS editor_watch_artist_fk_editor;
ALTER TABLE editor_watch_preferences DROP CONSTRAINT IF EXISTS editor_watch_preferences_fk_editor;
ALTER TABLE editor_watch_release_group_type DROP CONSTRAINT IF EXISTS editor_watch_release_group_type_fk_editor;
ALTER TABLE editor_watch_release_group_type DROP CONSTRAINT IF EXISTS editor_watch_release_group_type_fk_release_group_type;
ALTER TABLE editor_watch_release_status DROP CONSTRAINT IF EXISTS editor_watch_release_status_fk_editor;
ALTER TABLE editor_watch_release_status DROP CONSTRAINT IF EXISTS editor_watch_release_status_fk_release_status;
ALTER TABLE event DROP CONSTRAINT IF EXISTS event_fk_type;
ALTER TABLE event_alias DROP CONSTRAINT IF EXISTS event_alias_fk_event;
ALTER TABLE event_alias DROP CONSTRAINT IF EXISTS event_alias_fk_type;
Expand Down
1 change: 0 additions & 1 deletion mbslave/sql/DropFunctions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ DROP FUNCTION a_ins_alternative_medium_track();
DROP FUNCTION a_ins_alternative_release_or_track();
DROP FUNCTION a_ins_artist();
DROP FUNCTION a_ins_edit_note();
DROP FUNCTION a_ins_editor();
DROP FUNCTION a_ins_event();
DROP FUNCTION a_ins_instrument();
DROP FUNCTION a_ins_l_area_area_mirror();
Expand Down
2 changes: 2 additions & 0 deletions mbslave/sql/DropIndexes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ DROP INDEX edit_instrument_idx;
DROP INDEX edit_label_idx;
DROP INDEX edit_label_idx_status;
DROP INDEX edit_mood_idx;
DROP INDEX edit_note_change_idx_edit_note;
DROP INDEX edit_note_idx_edit;
DROP INDEX edit_note_idx_editor;
DROP INDEX edit_note_recipient_idx_recipient;
Expand Down Expand Up @@ -506,6 +507,7 @@ DROP INDEX track_idx_artist_credit;
DROP INDEX track_idx_gid;
DROP INDEX track_idx_recording;
DROP INDEX track_raw_idx_release;
DROP INDEX unreferenced_row_log_idx_inserted;
DROP INDEX url_gid_redirect_idx_new_id;
DROP INDEX url_idx_gid;
DROP INDEX url_idx_url;
Expand Down
6 changes: 2 additions & 4 deletions mbslave/sql/DropPrimaryKeys.sql
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ ALTER TABLE edit_instrument DROP CONSTRAINT IF EXISTS edit_instrument_pkey;
ALTER TABLE edit_label DROP CONSTRAINT IF EXISTS edit_label_pkey;
ALTER TABLE edit_mood DROP CONSTRAINT IF EXISTS edit_mood_pkey;
ALTER TABLE edit_note DROP CONSTRAINT IF EXISTS edit_note_pkey;
ALTER TABLE edit_note_change DROP CONSTRAINT IF EXISTS edit_note_change_pkey;
ALTER TABLE edit_note_recipient DROP CONSTRAINT IF EXISTS edit_note_recipient_pkey;
ALTER TABLE edit_place DROP CONSTRAINT IF EXISTS edit_place_pkey;
ALTER TABLE edit_recording DROP CONSTRAINT IF EXISTS edit_recording_pkey;
Expand Down Expand Up @@ -90,10 +91,6 @@ ALTER TABLE editor_subscribe_label DROP CONSTRAINT IF EXISTS editor_subscribe_la
ALTER TABLE editor_subscribe_label_deleted DROP CONSTRAINT IF EXISTS editor_subscribe_label_deleted_pkey;
ALTER TABLE editor_subscribe_series DROP CONSTRAINT IF EXISTS editor_subscribe_series_pkey;
ALTER TABLE editor_subscribe_series_deleted DROP CONSTRAINT IF EXISTS editor_subscribe_series_deleted_pkey;
ALTER TABLE editor_watch_artist DROP CONSTRAINT IF EXISTS editor_watch_artist_pkey;
ALTER TABLE editor_watch_preferences DROP CONSTRAINT IF EXISTS editor_watch_preferences_pkey;
ALTER TABLE editor_watch_release_group_type DROP CONSTRAINT IF EXISTS editor_watch_release_group_type_pkey;
ALTER TABLE editor_watch_release_status DROP CONSTRAINT IF EXISTS editor_watch_release_status_pkey;
ALTER TABLE event DROP CONSTRAINT IF EXISTS event_pkey;
ALTER TABLE event_alias DROP CONSTRAINT IF EXISTS event_alias_pkey;
ALTER TABLE event_alias_type DROP CONSTRAINT IF EXISTS event_alias_type_pkey;
Expand Down Expand Up @@ -350,6 +347,7 @@ ALTER TABLE tag_relation DROP CONSTRAINT IF EXISTS tag_relation_pkey;
ALTER TABLE track DROP CONSTRAINT IF EXISTS track_pkey;
ALTER TABLE track_gid_redirect DROP CONSTRAINT IF EXISTS track_gid_redirect_pkey;
ALTER TABLE track_raw DROP CONSTRAINT IF EXISTS track_raw_pkey;
ALTER TABLE unreferenced_row_log DROP CONSTRAINT IF EXISTS unreferenced_row_log_pkey;
ALTER TABLE url DROP CONSTRAINT IF EXISTS url_pkey;
ALTER TABLE url_gid_redirect DROP CONSTRAINT IF EXISTS url_gid_redirect_pkey;
ALTER TABLE vote DROP CONSTRAINT IF EXISTS vote_pkey;
Expand Down
6 changes: 2 additions & 4 deletions mbslave/sql/DropTables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ DROP TABLE edit_instrument;
DROP TABLE edit_label;
DROP TABLE edit_mood;
DROP TABLE edit_note;
DROP TABLE edit_note_change;
DROP TABLE edit_note_recipient;
DROP TABLE edit_place;
DROP TABLE edit_recording;
Expand Down Expand Up @@ -94,10 +95,6 @@ DROP TABLE editor_subscribe_label;
DROP TABLE editor_subscribe_label_deleted;
DROP TABLE editor_subscribe_series;
DROP TABLE editor_subscribe_series_deleted;
DROP TABLE editor_watch_artist;
DROP TABLE editor_watch_preferences;
DROP TABLE editor_watch_release_group_type;
DROP TABLE editor_watch_release_status;
DROP TABLE event;
DROP TABLE event_alias;
DROP TABLE event_alias_type;
Expand Down Expand Up @@ -355,6 +352,7 @@ DROP TABLE tag_relation;
DROP TABLE track;
DROP TABLE track_gid_redirect;
DROP TABLE track_raw;
DROP TABLE unreferenced_row_log;
DROP TABLE url;
DROP TABLE url_gid_redirect;
DROP TABLE vote;
Expand Down
1 change: 0 additions & 1 deletion mbslave/sql/DropTriggers.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ DROP TRIGGER IF EXISTS restore_collection_sub_on_public ON editor_collection;
DROP TRIGGER IF EXISTS search_hint ON artist_alias;
DROP TRIGGER IF EXISTS b_upd_artist_tag ON artist_tag;
DROP TRIGGER IF EXISTS b_upd_editor ON editor;
DROP TRIGGER IF EXISTS a_ins_editor ON editor;
DROP TRIGGER IF EXISTS check_editor_name ON editor;
DROP TRIGGER IF EXISTS a_ins_event ON event;
DROP TRIGGER IF EXISTS b_upd_event ON event;
Expand Down
Loading

0 comments on commit d32e188

Please sign in to comment.