summaryrefslogtreecommitdiff
path: root/controller/schema.sql.c
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-06-29 10:40:31 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-06-29 10:40:31 -0700
commitf05e62deae8c24a4f2a373ef190ef36b335399ee (patch)
treee6fa5b6c57673b175251686bcdaeeb614462fd9d /controller/schema.sql.c
parentdbee1b38b3fce2cab93c46157b9144bfab73cf87 (diff)
downloadinfinitytier-f05e62deae8c24a4f2a373ef190ef36b335399ee.tar.gz
infinitytier-f05e62deae8c24a4f2a373ef190ef36b335399ee.zip
DB schema changes: separate portId in rules, ranges in IP assignment pools. (No code changes yet so code is broken.)
Diffstat (limited to 'controller/schema.sql.c')
-rw-r--r--controller/schema.sql.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/controller/schema.sql.c b/controller/schema.sql.c
index 1157facc..8b27e628 100644
--- a/controller/schema.sql.c
+++ b/controller/schema.sql.c
@@ -37,6 +37,7 @@
"CREATE TABLE IpAssignment (\n"\
" networkId char(16) NOT NULL REFERENCES Network(id) ON DELETE CASCADE,\n"\
" nodeId char(10) NOT NULL REFERENCES Node(id) ON DELETE CASCADE,\n"\
+" type integer NOT NULL DEFAULT(0),\n"\
" ip blob(16) NOT NULL,\n"\
" ipNetmaskBits integer NOT NULL DEFAULT(0),\n"\
" ipVersion integer NOT NULL DEFAULT(4)\n"\
@@ -48,8 +49,8 @@
"\n"\
"CREATE TABLE IpAssignmentPool (\n"\
" networkId char(16) NOT NULL REFERENCES Network(id) ON DELETE CASCADE,\n"\
-" ipNetwork blob(16) NOT NULL,\n"\
-" ipNetmaskBits integer NOT NULL,\n"\
+" ipRangeStart blob(16) NOT NULL,\n"\
+" ipRangeEnd blob(16) NOT NULL,\n"\
" ipVersion integer NOT NULL DEFAULT(4)\n"\
");\n"\
"\n"\
@@ -78,6 +79,7 @@
" networkId char(16) NOT NULL REFERENCES Network(id) ON DELETE CASCADE,\n"\
" ruleNo integer NOT NULL,\n"\
" nodeId char(10) NOT NULL REFERENCES Node(id) ON DELETE CASCADE,\n"\
+" portId char(10) NOT NULL REFERENCES Node(id) ON DELETE CASCADE,\n"\
" vlanId integer,\n"\
" vlanPcp integer,\n"\
" etherType integer,\n"\