diff options
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; |