diff options
Diffstat (limited to 'sqitch')
4 files changed, 22 insertions, 0 deletions
diff --git a/sqitch/deploy/change_load_new_guix_revision_job_logs_contents_to_be_nullable.sql b/sqitch/deploy/change_load_new_guix_revision_job_logs_contents_to_be_nullable.sql new file mode 100644 index 0000000..2ca9187 --- /dev/null +++ b/sqitch/deploy/change_load_new_guix_revision_job_logs_contents_to_be_nullable.sql @@ -0,0 +1,7 @@ +-- Deploy guix-data-service:change_load_new_guix_revision_job_logs_contents_to_be_nullable to pg + +BEGIN; + +ALTER TABLE load_new_guix_revision_job_logs ALTER COLUMN contents DROP NOT NULL; + +COMMIT; diff --git a/sqitch/revert/change_load_new_guix_revision_job_logs_contents_to_be_nullable.sql b/sqitch/revert/change_load_new_guix_revision_job_logs_contents_to_be_nullable.sql new file mode 100644 index 0000000..509aace --- /dev/null +++ b/sqitch/revert/change_load_new_guix_revision_job_logs_contents_to_be_nullable.sql @@ -0,0 +1,7 @@ +-- Revert guix-data-service:change_load_new_guix_revision_job_logs_contents_to_be_nullable from pg + +BEGIN; + +ALTER TABLE load_new_guix_revision_job_logs ALTER contents SET NOT NULL; + +COMMIT; diff --git a/sqitch/sqitch.plan b/sqitch/sqitch.plan index a03da58..7a37548 100644 --- a/sqitch/sqitch.plan +++ b/sqitch/sqitch.plan @@ -14,3 +14,4 @@ license_support 2019-05-13T20:37:40Z Christopher Baines <mail@cbaines.net> # Add dates_to_load_new_guix_revision_jobs 2019-06-02T07:39:49Z Christopher Baines <mail@cbaines.net> # Add dates to the load_new_guix_revision_jobs table load_new_guix_revision_job_events 2019-06-02T15:44:41Z Christopher Baines <mail@cbaines.net> # Add new table for guix_revision_job_events load_new_guix_revision_job_logs 2019-06-21T14:33:09Z chris <chris@phact> # Add load_new_guix_revision_job_logs +change_load_new_guix_revision_job_logs_contents_to_be_nullable 2019-07-07T20:10:54Z Christopher Baines <mail@cbaines.net> # Change the contents field in the load_new_guix_revision_job_logs table\nto be nullable.\n\nwith '#' will # be ignored, and an empty message aborts the add. #\nChange to add: # #\nchange_load_new_guix_revision_job_logs_contents_to_be_nullable #\nsqitch/deploy/change_load_new_guix_revision_job_logs_contents_to_be_nullable.sql\nsqitch/revert/change_load_new_guix_revision_job_logs_contents_to_be_nullable.sql\nsqitch/verify/change_load_new_guix_revision_job_logs_contents_to_be_nullable.sql diff --git a/sqitch/verify/change_load_new_guix_revision_job_logs_contents_to_be_nullable.sql b/sqitch/verify/change_load_new_guix_revision_job_logs_contents_to_be_nullable.sql new file mode 100644 index 0000000..a165548 --- /dev/null +++ b/sqitch/verify/change_load_new_guix_revision_job_logs_contents_to_be_nullable.sql @@ -0,0 +1,7 @@ +-- Verify guix-data-service:change_load_new_guix_revision_job_logs_contents_to_be_nullable on pg + +BEGIN; + +-- XXX Add verifications here. + +ROLLBACK; |