diff options
author | Christopher Baines <mail@cbaines.net> | 2020-04-09 21:09:19 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-04-10 20:34:47 +0100 |
commit | 23e97d15becc5849157b9f215fac240be07ed717 (patch) | |
tree | 8b3f4492bc2393c38608d1484d62443df93072f5 /sqitch | |
parent | d277fa10b8492dc8e34d3763cc70f2b6665c71ad (diff) | |
download | build-coordinator-23e97d15becc5849157b9f215fac240be07ed717.tar build-coordinator-23e97d15becc5849157b9f215fac240be07ed717.tar.gz |
Add initial agent related tables
Diffstat (limited to 'sqitch')
-rw-r--r-- | sqitch/pg/deploy/initial_agent_tables.sql | 7 | ||||
-rw-r--r-- | sqitch/pg/revert/initial_agent_tables.sql | 7 | ||||
-rw-r--r-- | sqitch/pg/verify/initial_agent_tables.sql | 7 | ||||
-rw-r--r-- | sqitch/sqitch.plan | 1 | ||||
-rw-r--r-- | sqitch/sqlite/deploy/initial_agent_tables.sql | 24 | ||||
-rw-r--r-- | sqitch/sqlite/revert/initial_agent_tables.sql | 7 | ||||
-rw-r--r-- | sqitch/sqlite/verify/initial_agent_tables.sql | 7 |
7 files changed, 60 insertions, 0 deletions
diff --git a/sqitch/pg/deploy/initial_agent_tables.sql b/sqitch/pg/deploy/initial_agent_tables.sql new file mode 100644 index 0000000..0db0fab --- /dev/null +++ b/sqitch/pg/deploy/initial_agent_tables.sql @@ -0,0 +1,7 @@ +-- Deploy guix-build-coordinator:initial_agent_tables to pg + +BEGIN; + +-- XXX Add DDLs here. + +COMMIT; diff --git a/sqitch/pg/revert/initial_agent_tables.sql b/sqitch/pg/revert/initial_agent_tables.sql new file mode 100644 index 0000000..a8ab40d --- /dev/null +++ b/sqitch/pg/revert/initial_agent_tables.sql @@ -0,0 +1,7 @@ +-- Revert guix-build-coordinator:initial_agent_tables from pg + +BEGIN; + +-- XXX Add DDLs here. + +COMMIT; diff --git a/sqitch/pg/verify/initial_agent_tables.sql b/sqitch/pg/verify/initial_agent_tables.sql new file mode 100644 index 0000000..0dbff87 --- /dev/null +++ b/sqitch/pg/verify/initial_agent_tables.sql @@ -0,0 +1,7 @@ +-- Verify guix-build-coordinator:initial_agent_tables on pg + +BEGIN; + +-- XXX Add verifications here. + +ROLLBACK; diff --git a/sqitch/sqitch.plan b/sqitch/sqitch.plan index 812a090..ff6995b 100644 --- a/sqitch/sqitch.plan +++ b/sqitch/sqitch.plan @@ -4,3 +4,4 @@ schema 2020-04-03T21:01:15Z Christopher Baines <mail@cbaines.net> # Create a schema initial_derivation_tables 2020-04-04T09:48:34Z Christopher Baines <mail@cbaines.net> # Create initial derivation related tables create_builds 2020-04-06T18:50:48Z Christopher Baines <mail@cbaines.net> # Create builds +initial_agent_tables 2020-04-09T20:03:53Z Christopher Baines <mail@cbaines.net> # Create initial tables for agent related state diff --git a/sqitch/sqlite/deploy/initial_agent_tables.sql b/sqitch/sqlite/deploy/initial_agent_tables.sql new file mode 100644 index 0000000..c6ab4dc --- /dev/null +++ b/sqitch/sqlite/deploy/initial_agent_tables.sql @@ -0,0 +1,24 @@ +-- Deploy guix-build-coordinator:initial_agent_tables to sqlite + +BEGIN; + +CREATE TABLE agents ( + id TEXT PRIMARY KEY, + description TEXT +); + +CREATE TABLE agent_passwords ( + id INTEGER PRIMARY KEY ASC, + agent_id NOT NULL REFERENCES agents (id), + password TEXT NOT NULL, + timestamp DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP +); + +CREATE TABLE agent_status ( + id INTEGER PRIMARY KEY ASC, + agent_id NOT NULL REFERENCES agents (id), + timestamp DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, + status TEXT NOT NULL +); + +COMMIT; diff --git a/sqitch/sqlite/revert/initial_agent_tables.sql b/sqitch/sqlite/revert/initial_agent_tables.sql new file mode 100644 index 0000000..c214ec7 --- /dev/null +++ b/sqitch/sqlite/revert/initial_agent_tables.sql @@ -0,0 +1,7 @@ +-- Revert guix-build-coordinator:initial_agent_tables from sqlite + +BEGIN; + +-- XXX Add DDLs here. + +COMMIT; diff --git a/sqitch/sqlite/verify/initial_agent_tables.sql b/sqitch/sqlite/verify/initial_agent_tables.sql new file mode 100644 index 0000000..b86fb5f --- /dev/null +++ b/sqitch/sqlite/verify/initial_agent_tables.sql @@ -0,0 +1,7 @@ +-- Verify guix-build-coordinator:initial_agent_tables on sqlite + +BEGIN; + +-- XXX Add verifications here. + +ROLLBACK; |