aboutsummaryrefslogtreecommitdiff
path: root/sqitch/sqlite
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-05-10 17:25:09 +0100
committerChristopher Baines <mail@cbaines.net>2020-05-10 17:25:09 +0100
commite2da4a08ff03e66d76351ca83e14fbbcfcc51ff8 (patch)
tree80477c64992466498c7b86c936668c1fb1651a96 /sqitch/sqlite
parent542e606211c0129691bd4d843505212abf6ec1ce (diff)
downloadbuild-coordinator-e2da4a08ff03e66d76351ca83e14fbbcfcc51ff8.tar
build-coordinator-e2da4a08ff03e66d76351ca83e14fbbcfcc51ff8.tar.gz
Add datastore-fetch-unprocessed-builds-with-propagated-priorities
To use with the derivation ordered allocator.
Diffstat (limited to 'sqitch/sqlite')
-rw-r--r--sqitch/sqlite/deploy/derivation_outputs_derivation_name_index.sql7
-rw-r--r--sqitch/sqlite/revert/derivation_outputs_derivation_name_index.sql7
-rw-r--r--sqitch/sqlite/verify/derivation_outputs_derivation_name_index.sql7
3 files changed, 21 insertions, 0 deletions
diff --git a/sqitch/sqlite/deploy/derivation_outputs_derivation_name_index.sql b/sqitch/sqlite/deploy/derivation_outputs_derivation_name_index.sql
new file mode 100644
index 0000000..b564ef6
--- /dev/null
+++ b/sqitch/sqlite/deploy/derivation_outputs_derivation_name_index.sql
@@ -0,0 +1,7 @@
+-- Deploy guix-build-coordinator:derivation_outputs_derivation_name_index to sqlite
+
+BEGIN;
+
+CREATE INDEX derivation_outputs_derivation_name_idx ON derivation_outputs (derivation_name);
+
+COMMIT;
diff --git a/sqitch/sqlite/revert/derivation_outputs_derivation_name_index.sql b/sqitch/sqlite/revert/derivation_outputs_derivation_name_index.sql
new file mode 100644
index 0000000..d915d2d
--- /dev/null
+++ b/sqitch/sqlite/revert/derivation_outputs_derivation_name_index.sql
@@ -0,0 +1,7 @@
+-- Revert guix-build-coordinator:derivation_outputs_derivation_name_index from sqlite
+
+BEGIN;
+
+-- XXX Add DDLs here.
+
+COMMIT;
diff --git a/sqitch/sqlite/verify/derivation_outputs_derivation_name_index.sql b/sqitch/sqlite/verify/derivation_outputs_derivation_name_index.sql
new file mode 100644
index 0000000..5871242
--- /dev/null
+++ b/sqitch/sqlite/verify/derivation_outputs_derivation_name_index.sql
@@ -0,0 +1,7 @@
+-- Verify guix-build-coordinator:derivation_outputs_derivation_name_index on sqlite
+
+BEGIN;
+
+-- XXX Add verifications here.
+
+ROLLBACK;