aboutsummaryrefslogtreecommitdiff
path: root/sqitch/sqlite/deploy/add_agent_tags.sql
diff options
context:
space:
mode:
Diffstat (limited to 'sqitch/sqlite/deploy/add_agent_tags.sql')
-rw-r--r--sqitch/sqlite/deploy/add_agent_tags.sql11
1 files changed, 11 insertions, 0 deletions
diff --git a/sqitch/sqlite/deploy/add_agent_tags.sql b/sqitch/sqlite/deploy/add_agent_tags.sql
new file mode 100644
index 0000000..d1efbe1
--- /dev/null
+++ b/sqitch/sqlite/deploy/add_agent_tags.sql
@@ -0,0 +1,11 @@
+-- Deploy guix-build-coordinator:add_agent_tags to sqlite
+
+BEGIN;
+
+CREATE TABLE agent_tags (
+ agent_id TEXT NOT NULL REFERENCES agents (id),
+ tag_id INTEGER NOT NULL REFERENCES tags (id),
+ PRIMARY KEY (agent_id, tag_id)
+);
+
+COMMIT;