diff --git a/CHANGELOG.rst b/CHANGELOG.rst index ea9a40fa..0c25d0d2 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,7 @@ not yet released ---------------------------------- * #161: Added Swedish translation. +* #169: Increased server ip char limit to 500. v3.1.1 (released November 6, 2014) diff --git a/src/psm/Util/Install/Installer.class.php b/src/psm/Util/Install/Installer.class.php index 3fc9e375..1ecf1b9c 100644 --- a/src/psm/Util/Install/Installer.class.php +++ b/src/psm/Util/Install/Installer.class.php @@ -272,17 +272,17 @@ class Installer { */ public function upgrade($version_from, $version_to) { if(version_compare($version_from, '2.1.0', '<')) { - // upgrade to 2.1.0 $this->upgrade210(); } if(version_compare($version_from, '3.0.0', '<')) { - // upgrade to 3.0.0 $this->upgrade300(); } if(version_compare($version_from, '3.1.0', '<')) { - // upgrade to 3.1.0 $this->upgrade310(); } + if(version_compare($version_from, '3.2.0', '<')) { + $this->upgrade320(); + } psm_update_conf('version', $version_to); } @@ -422,4 +422,12 @@ class Installer { $this->execSQL($queries); } + + protected function upgrade320() { + $queries = array(); + + $queries[] = "ALTER TABLE `" . PSM_DB_PREFIX . "servers` CHANGE `ip` `ip` VARCHAR(500) NOT NULL;"; + + $this->execSQL($queries); + } }