From 02c94d442ee8ad87e8e7a22cd17618d614d47282 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Tue, 11 Apr 2023 18:31:56 -0700 Subject: [PATCH] Breaking up a migration because it was a mistake to cobble them together (#27) --- .../20230411071020_article_code_columns.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Newsbot.Collector.Database/Migrations/20230411071020_article_code_columns.sql diff --git a/Newsbot.Collector.Database/Migrations/20230411071020_article_code_columns.sql b/Newsbot.Collector.Database/Migrations/20230411071020_article_code_columns.sql new file mode 100644 index 0000000..1fbe3cf --- /dev/null +++ b/Newsbot.Collector.Database/Migrations/20230411071020_article_code_columns.sql @@ -0,0 +1,15 @@ +-- +goose Up +-- +goose StatementBegin +SELECT 'up SQL query'; +ALTER TABLE articles + ADD COLUMN CodeIsRelease bool, + ADD COLUMN CodeIsCommit bool; +-- +goose StatementEnd + +-- +goose Down +-- +goose StatementBegin +SELECT 'down SQL query'; +Alter TABLE articles + DROP COLUMN CodeIsRelease, + DROP COLUMN CodeIsCommit +-- +goose StatementEnd