diff --git a/ext/pools/main.php b/ext/pools/main.php index b161e8bb..42bbe2c9 100644 --- a/ext/pools/main.php +++ b/ext/pools/main.php @@ -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