From 5c9411a671dbc62297863bfa732929e197557697 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 29 Jun 2015 14:52:09 -0700 Subject: Untested -- modifications to support IP ranges instead of ip/mask for IP assignment pools, also add portId to Rule for future use. --- controller/schema.sql.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'controller/schema.sql.c') 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"\ -- cgit v1.2.3