summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--controller/schema.sql4
-rw-r--r--controller/schema.sql.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/controller/schema.sql b/controller/schema.sql
index a3193f7d..1328d999 100644
--- a/controller/schema.sql
+++ b/controller/schema.sql
@@ -77,8 +77,8 @@ CREATE INDEX Relay_networkId ON Relay (networkId);
CREATE TABLE Rule (
networkId char(16) NOT NULL REFERENCES Network(id) ON DELETE CASCADE,
ruleNo integer NOT NULL,
- nodeId char(10) NOT NULL REFERENCES Node(id) ON DELETE CASCADE,
- portId char(10) NOT NULL REFERENCES Node(id) ON DELETE CASCADE,
+ nodeId char(10) REFERENCES Node(id),
+ portId char(10) REFERENCES Node(id),
vlanId integer,
vlanPcp integer,
etherType integer,
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"\