updated SQL templates to support attribute pool and identity parameters

This commit is contained in:
Andreas Steffen
2010-07-12 20:28:34 +02:00
parent cb0a9d58a3
commit ab635e029e
3 changed files with 30 additions and 1 deletions
+13 -1
View File
@@ -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;