pool title should be unique

This commit is contained in:
Daku 2013-12-29 20:46:37 +00:00
parent 63aa4c6330
commit 59eb6d7ec2

View File

@ -71,6 +71,11 @@ class Pools extends Extension {
log_info("pools", "extension installed");
}
if ($config->get_int("ext_pools_version") < 2){
$database->Execute("ALTER TABLE `pools` ADD UNIQUE INDEX (`title`);");
$config->set_int("ext_pools_version", 2);
}
}
// Add a block to the Board Config / Setup