summaryrefslogtreecommitdiff
path: root/controller/schema.sql.c
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-06-29 14:52:09 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-06-29 14:52:09 -0700
commit5c9411a671dbc62297863bfa732929e197557697 (patch)
treee7dd5e91b1e5bc093ee6d3eb10537ccf8e1c199c /controller/schema.sql.c
parent48a2ad032aa39dab2980787b2746360655c1859f (diff)
downloadinfinitytier-5c9411a671dbc62297863bfa732929e197557697.tar.gz
infinitytier-5c9411a671dbc62297863bfa732929e197557697.zip
Untested -- modifications to support IP ranges instead of ip/mask for IP assignment pools, also add portId to Rule for future use.
Diffstat (limited to 'controller/schema.sql.c')
-rw-r--r--controller/schema.sql.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/controller/schema.sql.c b/controller/schema.sql.c
index d129637c..c47d1b49 100644
--- a/controller/schema.sql.c
+++ b/controller/schema.sql.c
@@ -19,10 +19,7 @@
"\n"\
"CREATE TABLE Node (\n"\
" id char(10) PRIMARY KEY NOT NULL,\n"\
-" identity varchar(4096) NOT NULL,\n"\
-" lastAt varchar(64),\n"\
-" lastSeen integer NOT NULL DEFAULT(0),\n"\
-" firstSeen integer NOT NULL DEFAULT(0)\n"\
+" identity varchar(4096) NOT NULL\n"\
");\n"\
"\n"\
"CREATE TABLE Gateway (\n"\
@@ -54,7 +51,7 @@
" ipVersion integer NOT NULL DEFAULT(4)\n"\
");\n"\
"\n"\
-"CREATE INDEX IpAssignmentPool_networkId ON IpAssignmentPool (networkId);\n"\
+"CREATE UNIQUE INDEX IpAssignmentPool_networkId_ipRangeStart ON IpAssignmentPool (networkId,ipRangeStart);\n"\
"\n"\
"CREATE TABLE Member (\n"\
" networkId char(16) NOT NULL REFERENCES Network(id) ON DELETE CASCADE,\n"\