14 lines
399 B
MySQL
14 lines
399 B
MySQL
|
|
||
|
-- +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;
|