Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add 20160512-mbs-8719.sql to upgrade.json
  • Loading branch information
mwiencek committed May 24, 2016
1 parent c2f5a94 commit 0085603
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions admin/sql/updates/schema-change/23.slave.sql
Expand Up @@ -7,6 +7,7 @@
-- 20160310-mbs-4501-alternative-tracklists.sql
-- 20160516-mbs-8656.sql
-- 20160507-mbs-8727.sql
-- 20160512-mbs-8719.sql
-- 20160512-edit-data.sql
-- 20160514-mbs-8287-a.sql
-- 20160514-mbs-8287-b.sql
Expand Down Expand Up @@ -416,6 +417,19 @@ UPDATE vote SET superseded = 't' WHERE id IN (
DROP INDEX IF EXISTS vote_idx_editor_edit;
CREATE UNIQUE INDEX vote_idx_editor_edit ON vote (editor, edit) WHERE superseded = FALSE;

--------------------------------------------------------------------------------
SELECT '20160512-mbs-8719.sql';

ALTER TABLE edit
DROP COLUMN yes_votes,
DROP COLUMN no_votes;

ALTER TABLE editor
DROP COLUMN edits_accepted,
DROP COLUMN edits_rejected,
DROP COLUMN auto_edits_accepted,
DROP COLUMN edits_failed;

--------------------------------------------------------------------------------
SELECT '20160512-edit-data.sql';

Expand Down
1 change: 1 addition & 0 deletions upgrade.json
Expand Up @@ -32,6 +32,7 @@
"20160310-mbs-4501-alternative-tracklists.sql",
"20160516-mbs-8656.sql",
"20160507-mbs-8727.sql",
"20160512-mbs-8719.sql",
"20160512-edit-data.sql",
"20160514-mbs-8287-a.sql",
"20160514-mbs-8287-b.sql",
Expand Down

0 comments on commit 0085603

Please sign in to comment.