transmet/db/migrations/20150514072125_exported.sql

14 lines
399 B
SQL

-- +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;