aboutsummaryrefslogtreecommitdiff
path: root/sqitch/sqlite/deploy/fix_allocated_builds.sql
diff options
context:
space:
mode:
Diffstat (limited to 'sqitch/sqlite/deploy/fix_allocated_builds.sql')
-rw-r--r--sqitch/sqlite/deploy/fix_allocated_builds.sql14
1 files changed, 14 insertions, 0 deletions
diff --git a/sqitch/sqlite/deploy/fix_allocated_builds.sql b/sqitch/sqlite/deploy/fix_allocated_builds.sql
new file mode 100644
index 0000000..8710cf1
--- /dev/null
+++ b/sqitch/sqlite/deploy/fix_allocated_builds.sql
@@ -0,0 +1,14 @@
+-- Deploy guix-build-coordinator:fix_allocated_builds to sqlite
+
+BEGIN;
+
+DROP TABLE build_allocation_plan;
+
+CREATE TABLE build_allocation_plan (
+ build_id INTEGER NOT NULL REFERENCES builds (id),
+ agent_id TEXT NOT NULL REFERENCES agents (id),
+ ordering INTEGER NOT NULL,
+ PRIMARY KEY (agent_id, build_id)
+);
+
+COMMIT;