aboutsummaryrefslogtreecommitdiff
path: root/sqitch/deploy
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2019-12-28 22:47:58 +0000
committerChristopher Baines <mail@cbaines.net>2019-12-28 22:47:58 +0000
commitc84b21be7cda09bbcd5ac94b10525cead5ee080a (patch)
tree7a8add4cfdf726ed539470cda36d27b37b71bbd4 /sqitch/deploy
parentf56935a8a6893ca27b8bebea15c452167764f901 (diff)
downloaddata-service-c84b21be7cda09bbcd5ac94b10525cead5ee080a.tar
data-service-c84b21be7cda09bbcd5ac94b10525cead5ee080a.tar.gz
Add a new table to nars for derivation source files
This will allow serving the nars for derivation source files.
Diffstat (limited to 'sqitch/deploy')
-rw-r--r--sqitch/deploy/add_derivation_source_file_nars.sql14
1 files changed, 14 insertions, 0 deletions
diff --git a/sqitch/deploy/add_derivation_source_file_nars.sql b/sqitch/deploy/add_derivation_source_file_nars.sql
new file mode 100644
index 0000000..2690dda
--- /dev/null
+++ b/sqitch/deploy/add_derivation_source_file_nars.sql
@@ -0,0 +1,14 @@
+-- Deploy guix-data-service:add_derivation_source_file_nars to pg
+
+BEGIN;
+
+CREATE TABLE derivation_source_file_nars (
+ derivation_source_file_id integer PRIMARY KEY REFERENCES derivation_source_files (id),
+ compression varchar NOT NULL,
+ hash_algorithm varchar NOT NULL,
+ hash varchar NOT NULL,
+ uncompressed_size integer NOT NULL,
+ data bytea NOT NULL
+);
+
+COMMIT;