aboutsummaryrefslogtreecommitdiff
path: root/sqitch/deploy
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-06-03 06:56:59 +0100
committerChristopher Baines <mail@cbaines.net>2020-06-03 06:56:59 +0100
commit916b594473f2f776fbe745d77203df8152d57ee9 (patch)
treedc99f8dd59b36b4ee22833099d06117e17fddaff /sqitch/deploy
parent5894f05147b24383202e82f55dcac2f7e4e26b2e (diff)
downloaddata-service-916b594473f2f776fbe745d77203df8152d57ee9.tar
data-service-916b594473f2f776fbe745d77203df8152d57ee9.tar.gz
Make nar_urls file sizes optional
Diffstat (limited to 'sqitch/deploy')
-rw-r--r--sqitch/deploy/make_nar_urls_file_size_optional.sql7
1 files changed, 7 insertions, 0 deletions
diff --git a/sqitch/deploy/make_nar_urls_file_size_optional.sql b/sqitch/deploy/make_nar_urls_file_size_optional.sql
new file mode 100644
index 0000000..e2f7d31
--- /dev/null
+++ b/sqitch/deploy/make_nar_urls_file_size_optional.sql
@@ -0,0 +1,7 @@
+-- Deploy guix-data-service:make_nar_urls_file_size_optional to pg
+
+BEGIN;
+
+ALTER TABLE nar_urls ALTER COLUMN file_size DROP NOT NULL;
+
+COMMIT;