summaryrefslogtreecommitdiff
path: root/controller/schema.sql.c
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-06-29 10:47:47 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-06-29 10:47:47 -0700
commit48a2ad032aa39dab2980787b2746360655c1859f (patch)
tree8963fd8484015aeca92a0346e6e251d50385e337 /controller/schema.sql.c
parentf05e62deae8c24a4f2a373ef190ef36b335399ee (diff)
downloadinfinitytier-48a2ad032aa39dab2980787b2746360655c1859f.tar.gz
infinitytier-48a2ad032aa39dab2980787b2746360655c1859f.zip
(1) Both nodeId and portId in Rule can be NULL, (2) remove on delete cascade since rules should never mysteriously disappear from the rules table. If it let you delete a node with rules, that would be a UI or cleanup function bug.
Diffstat (limited to 'controller/schema.sql.c')
-rw-r--r--controller/schema.sql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/controller/schema.sql.c b/controller/schema.sql.c
index 8b27e628..d129637c 100644
--- a/controller/schema.sql.c
+++ b/controller/schema.sql.c
@@ -78,8 +78,8 @@
"CREATE TABLE Rule (\n"\
" 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"\
+" nodeId char(10) REFERENCES Node(id),\n"\
+" portId char(10) REFERENCES Node(id),\n"\
" vlanId integer,\n"\
" vlanPcp integer,\n"\
" etherType integer,\n"\