summaryrefslogtreecommitdiff
path: root/src/libimcv/imv/tables.sql
diff options
context:
space:
mode:
authorYves-Alexis Perez <corsac@debian.org>2013-11-01 13:32:07 +0100
committerYves-Alexis Perez <corsac@debian.org>2013-11-01 13:32:07 +0100
commit5313d2d78ca150515f7f5eb39801c100690b6b29 (patch)
treec78e420367283bb1b16f14210b12687cdfbd26eb /src/libimcv/imv/tables.sql
parent6b99c8d9cff7b3e8ae8f3204b99e7ea40f791349 (diff)
downloadvyos-strongswan-5313d2d78ca150515f7f5eb39801c100690b6b29.tar.gz
vyos-strongswan-5313d2d78ca150515f7f5eb39801c100690b6b29.zip
Imported Upstream version 5.1.1
Diffstat (limited to 'src/libimcv/imv/tables.sql')
-rw-r--r--src/libimcv/imv/tables.sql22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/libimcv/imv/tables.sql b/src/libimcv/imv/tables.sql
index 4cc959e09..a0f3a4e8d 100644
--- a/src/libimcv/imv/tables.sql
+++ b/src/libimcv/imv/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
+);
+