Newsbot.Collector/Newsbot.Collector.Database/Migrations/20230326223545_icon_sourceid.sql

22 lines
441 B
MySQL
Raw Normal View History

-- +goose Up
-- +goose StatementBegin
SELECT 'up SQL query';
ALTER TABLE sources
ADD COLUMN IconUri uuid;
ALTER TABLE articles
ADD COLUMN CodeIsRelease bool,
ADD COLUMN CodeIsCommit bool;
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
SELECT 'down SQL query';
ALTER TABLE sources
DROP COLUMN IconUri;
Alter TABLE articles
DROP COLUMN CodeIsRelease,
DROP COLUMN CodeIsCommit
-- +goose StatementEnd