transmet/db/migrations/20150514072125_exported.sql

14 lines
399 B
MySQL
Raw Normal View History

2015-05-14 15:29:01 +00:00
-- +goose Up
-- SQL in section 'Up' is executed when this migration is applied
ALTER TABLE news DROP COLUMN exported;
ALTER TABLE news ADD COLUMN exported timestamp DEFAULT NULL;
CREATE INDEX ON news (exported);
-- +goose Down
-- SQL section 'Down' is executed when this migration is rolled back
ALTER TABLE news DROP COLUMN exported;
ALTER TABLE news ADD COLUMN exported boolean DEFAULT false;