diff --git a/ext/ipban/main.php b/ext/ipban/main.php
index 565354cf..2943fbf1 100644
--- a/ext/ipban/main.php
+++ b/ext/ipban/main.php
@@ -31,7 +31,7 @@ class IPBan extends Extension {
if(is_a($event, 'InitExtEvent')) {
global $config;
- if($config->get_int("ext_ipban_version") < 2) {
+ if($config->get_int("ext_ipban_version") < 4) {
$this->install();
}
diff --git a/ext/ipban/schema.xml b/ext/ipban/schema.xml
index 7b68487a..9439b692 100644
--- a/ext/ipban/schema.xml
+++ b/ext/ipban/schema.xml
@@ -5,8 +5,8 @@
-
-
+
+
ip
DEFAULT CHARSET='utf8'
@@ -14,6 +14,6 @@
DELETE FROM config WHERE name='ext_ipban_version'
- INSERT INTO config(name, value) VALUES('ext_ipban_version', 3)
+ INSERT INTO config(name, value) VALUES('ext_ipban_version', 4)