aboutsummaryrefslogtreecommitdiff
path: root/sqitch/deploy/change_nar_urls_size_to_bigint.sql
diff options
context:
space:
mode:
Diffstat (limited to 'sqitch/deploy/change_nar_urls_size_to_bigint.sql')
-rw-r--r--sqitch/deploy/change_nar_urls_size_to_bigint.sql7
1 files changed, 7 insertions, 0 deletions
diff --git a/sqitch/deploy/change_nar_urls_size_to_bigint.sql b/sqitch/deploy/change_nar_urls_size_to_bigint.sql
new file mode 100644
index 0000000..4b6fdf3
--- /dev/null
+++ b/sqitch/deploy/change_nar_urls_size_to_bigint.sql
@@ -0,0 +1,7 @@
+-- Deploy guix-data-service:change_nar_urls_size_to_bigint to pg
+
+BEGIN;
+
+ALTER TABLE nar_urls ALTER COLUMN file_size TYPE bigint USING file_size::bigint;
+
+COMMIT;