[module/server] issue #169: adding new server ip limit of 500 chars to upgrade script and changelog

This commit is contained in:
Pepijn Over 2015-02-27 11:15:29 +01:00
parent dc7036c39a
commit 6548a16972
2 changed files with 12 additions and 3 deletions

View File

@ -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)

View File

@ -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);
}
}