summaryrefslogtreecommitdiff
path: root/testing/hosts/default/etc/pts/tables.sql
diff options
context:
space:
mode:
Diffstat (limited to 'testing/hosts/default/etc/pts/tables.sql')
-rw-r--r--testing/hosts/default/etc/pts/tables.sql22
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/hosts/default/etc/pts/tables.sql b/testing/hosts/default/etc/pts/tables.sql
index 4cc959e09..a0f3a4e8d 100644
--- a/testing/hosts/default/etc/pts/tables.sql
+++ b/testing/hosts/default/etc/pts/tables.sql
@@ -232,3 +232,25 @@ CREATE TABLE identities (
UNIQUE (type, value)
);
+DROP TABLE IF EXISTS regids;
+CREATE TABLE regids (
+ id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
+ name TEXT NOT NULL
+);
+DROP INDEX IF EXISTS regids_name;
+CREATE INDEX regids_name ON regids (
+ name
+);
+
+DROP TABLE IF EXISTS tags;
+CREATE TABLE tags (
+ id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
+ regid INTEGER NOT NULL REFERENCES regids(id),
+ unique_sw_id TEXT NOT NULL,
+ value TEXT
+);
+DROP INDEX IF EXISTS tags_name;
+CREATE INDEX tags_unique_sw_id ON tags (
+ unique_sw_id
+);
+