From 3457d5f6a648ba62b581be4d80be95e60f3c9aaa Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Thu, 5 Dec 2019 14:09:28 +0100 Subject: WIP change nars size to bigint --- sqitch/deploy/change_nars_size_to_bigint.sql | 7 +++++++ sqitch/revert/change_nars_size_to_bigint.sql | 7 +++++++ sqitch/sqitch.plan | 1 + sqitch/verify/change_nars_size_to_bigint.sql | 7 +++++++ 4 files changed, 22 insertions(+) create mode 100644 sqitch/deploy/change_nars_size_to_bigint.sql create mode 100644 sqitch/revert/change_nars_size_to_bigint.sql create mode 100644 sqitch/verify/change_nars_size_to_bigint.sql (limited to 'sqitch') diff --git a/sqitch/deploy/change_nars_size_to_bigint.sql b/sqitch/deploy/change_nars_size_to_bigint.sql new file mode 100644 index 0000000..cc94352 --- /dev/null +++ b/sqitch/deploy/change_nars_size_to_bigint.sql @@ -0,0 +1,7 @@ +-- Deploy guix-data-service:change_nars_size_to_bigint to pg + +BEGIN; + +ALTER TABLE nars ALTER COLUMN size TYPE bigint USING size::bigint; + +COMMIT; diff --git a/sqitch/revert/change_nars_size_to_bigint.sql b/sqitch/revert/change_nars_size_to_bigint.sql new file mode 100644 index 0000000..d6c1296 --- /dev/null +++ b/sqitch/revert/change_nars_size_to_bigint.sql @@ -0,0 +1,7 @@ +-- Revert guix-data-service:change_nars_size_to_bigint from pg + +BEGIN; + +-- XXX Add DDLs here. + +COMMIT; diff --git a/sqitch/sqitch.plan b/sqitch/sqitch.plan index 158adab..fc01088 100644 --- a/sqitch/sqitch.plan +++ b/sqitch/sqitch.plan @@ -33,3 +33,4 @@ nar_related_tables 2019-11-29T20:28:19Z Christopher Baines # add_index_on_builds_derivation_file_name 2019-12-03T16:23:55Z # Add index on builds_derivation_file_name narinfo_fetch_record 2019-12-03T20:53:28Z # Add a table to describe fetching a narinfo equivalent_derivations 2019-12-04T16:43:37Z # Add equivalent_derivations table +change_nars_size_to_bigint 2019-12-04T21:24:21Z # Change nars.size to bigint diff --git a/sqitch/verify/change_nars_size_to_bigint.sql b/sqitch/verify/change_nars_size_to_bigint.sql new file mode 100644 index 0000000..fa199b4 --- /dev/null +++ b/sqitch/verify/change_nars_size_to_bigint.sql @@ -0,0 +1,7 @@ +-- Verify guix-data-service:change_nars_size_to_bigint on pg + +BEGIN; + +-- XXX Add verifications here. + +ROLLBACK; -- cgit v1.2.3