diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-06-13 11:34:31 +0200 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-06-13 11:34:31 +0200 |
| commit | 96a58becf8fe10efceab38c49553b009754d2632 (patch) | |
| tree | b4e73bbced3c94eb16ac79cfc8dd2b78eccb7938 /controller/schema.sql.c | |
| parent | 8a9715f183096e35e964a195b61f84bb263a9f85 (diff) | |
| download | infinitytier-96a58becf8fe10efceab38c49553b009754d2632.tar.gz infinitytier-96a58becf8fe10efceab38c49553b009754d2632.zip | |
Gateways support in network controller schema and database (not implemented yet in client) toward GitHub issue #178
Diffstat (limited to 'controller/schema.sql.c')
| -rw-r--r-- | controller/schema.sql.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/controller/schema.sql.c b/controller/schema.sql.c index 243d37d5..f1c66358 100644 --- a/controller/schema.sql.c +++ b/controller/schema.sql.c @@ -25,6 +25,15 @@ " firstSeen integer NOT NULL DEFAULT(0)\n"\ ");\n"\ "\n"\ +"CREATE TABLE Gateway (\n"\ +" networkId char(16) NOT NULL REFERENCES Network(id) ON DELETE CASCADE,\n"\ +" ip blob(16) NOT NULL,\n"\ +" ipVersion integer NOT NULL DEFAULT(4),\n"\ +" metric integer NOT NULL DEFAULT(0)\n"\ +");\n"\ +"\n"\ +"CREATE UNIQUE INDEX Gateway_networkId_ip ON Gateway (networkId, ip);\n"\ +"\n"\ "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"\ |
