diff options
author | Christopher Baines <mail@cbaines.net> | 2021-03-30 09:23:39 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2021-03-30 09:23:39 +0100 |
commit | 8ebe604c62acb424f899c01724347bf0f115b73e (patch) | |
tree | c90d6f9821fa865df422a607e0b6280e75df74aa /sqitch/sqlite/deploy | |
parent | f8bb56d192923a1a1f5550eff21fb2ab2a4457c9 (diff) | |
download | build-coordinator-8ebe604c62acb424f899c01724347bf0f115b73e.tar build-coordinator-8ebe604c62acb424f899c01724347bf0f115b73e.tar.gz |
Fix types in the allocated_builds table
Diffstat (limited to 'sqitch/sqlite/deploy')
-rw-r--r-- | sqitch/sqlite/deploy/fix_allocated_builds.sql | 14 |
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; |