mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-05 00:00:45 -04:00
updated SQL templates to support attribute pool and identity parameters
This commit is contained in:
parent
cb0a9d58a3
commit
ab635e029e
@ -187,11 +187,23 @@ CREATE TABLE leases (
|
||||
PRIMARY KEY (`id`)
|
||||
);
|
||||
|
||||
DROP TABLE IF EXISTS attribute_pools;
|
||||
CREATE TABLE attribute_pools (
|
||||
`id` int(10) unsigned NOT NULL auto_increment,
|
||||
`name` varchar(32) NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
);
|
||||
|
||||
DROP TABLE IF EXISTS attributes;
|
||||
CREATE TABLE attributes (
|
||||
`id` int(10) unsigned NOT NULL auto_increment,
|
||||
`identity` int(10) unsigned NOT NULL default '0',
|
||||
`pool` int(10) unsigned NOT NULL default '0',
|
||||
`type` int(10) unsigned NOT NULL,
|
||||
`value` varbinary(16) NOT NULL
|
||||
`value` varbinary(16) NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
INDEX (`identity`),
|
||||
INDEX (`pool`)
|
||||
);
|
||||
|
||||
DROP TABLE IF EXISTS ike_sas;
|
||||
|
@ -192,12 +192,28 @@ CREATE TABLE leases (
|
||||
released INTEGER NOT NULL
|
||||
);
|
||||
|
||||
DROP TABLE IF EXISTS attribute_pools;
|
||||
CREATE TABLE attribute_pools (
|
||||
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
||||
name TEXT NOT NULL
|
||||
);
|
||||
|
||||
DROP TABLE IF EXISTS attributes;
|
||||
CREATE TABLE attributes (
|
||||
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
||||
identity INTEGER NOT NULL DEFAULT 0,
|
||||
pool INTEGER NOT NULL DEFAULT 0,
|
||||
type INTEGER NOT NULL,
|
||||
value BLOB NOT NULL
|
||||
);
|
||||
DROP INDEX IF EXISTS attributes_identity;
|
||||
CREATE INDEX attributes_identity ON attributes (
|
||||
identity
|
||||
);
|
||||
DROP INDEX IF EXISTS attributes_pool;
|
||||
CREATE INDEX attributes_pool ON attributes (
|
||||
pool
|
||||
);
|
||||
|
||||
DROP TABLE IF EXISTS ike_sas;
|
||||
CREATE TABLE ike_sas (
|
||||
|
@ -188,6 +188,7 @@ CREATE TABLE attribute_pools (
|
||||
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
||||
name TEXT NOT NULL
|
||||
);
|
||||
|
||||
DROP TABLE IF EXISTS attributes;
|
||||
CREATE TABLE attributes (
|
||||
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
||||
|
Loading…
x
Reference in New Issue
Block a user