summaryrefslogtreecommitdiff
path: root/controller/schema.sql
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
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')
-rw-r--r--controller/schema.sql7
1 files changed, 2 insertions, 5 deletions
diff --git a/controller/schema.sql b/controller/schema.sql
index 1328d999..8ff1ff77 100644
--- a/controller/schema.sql
+++ b/controller/schema.sql
@@ -18,10 +18,7 @@ CREATE TABLE Network (
CREATE TABLE Node (
id char(10) PRIMARY KEY NOT NULL,
- identity varchar(4096) NOT NULL,
- lastAt varchar(64),
- lastSeen integer NOT NULL DEFAULT(0),
- firstSeen integer NOT NULL DEFAULT(0)
+ identity varchar(4096) NOT NULL
);
CREATE TABLE Gateway (
@@ -53,7 +50,7 @@ CREATE TABLE IpAssignmentPool (
ipVersion integer NOT NULL DEFAULT(4)
);
-CREATE INDEX IpAssignmentPool_networkId ON IpAssignmentPool (networkId);
+CREATE UNIQUE INDEX IpAssignmentPool_networkId_ipRangeStart ON IpAssignmentPool (networkId,ipRangeStart);
CREATE TABLE Member (
networkId char(16) NOT NULL REFERENCES Network(id) ON DELETE CASCADE,