2017-04-21 12:50:34 +00:00
|
|
|
|
2018-03-29 18:08:41 +00:00
|
|
|
-- +migrate Up
|
2017-04-21 12:50:34 +00:00
|
|
|
-- SQL in section 'Up' is executed when this migration is applied
|
|
|
|
|
|
|
|
-- Peter Yuill has a duplicate entry in the voters table he has ids 17 and 31
|
|
|
|
|
|
|
|
UPDATE votes SET voter=17 WHERE voter=31;
|
|
|
|
UPDATE decisions SET proponent=17 WHERE proponent=31;
|
|
|
|
DELETE FROM emails WHERE voter=31;
|
|
|
|
DELETE FROM voters WHERE id=31;
|
|
|
|
|
2018-03-29 18:08:41 +00:00
|
|
|
-- +migrate Down
|
2017-04-21 12:50:34 +00:00
|
|
|
-- SQL section 'Down' is executed when this migration is rolled back
|
|
|
|
|
|
|
|
-- There is no useful backward migration
|