[module/server] issue #169: adding new server ip limit of 500 chars to upgrade script and changelog
parent
dc7036c39a
commit
6548a16972
|
@ -6,6 +6,7 @@ not yet released
|
||||||
----------------------------------
|
----------------------------------
|
||||||
|
|
||||||
* #161: Added Swedish translation.
|
* #161: Added Swedish translation.
|
||||||
|
* #169: Increased server ip char limit to 500.
|
||||||
|
|
||||||
|
|
||||||
v3.1.1 (released November 6, 2014)
|
v3.1.1 (released November 6, 2014)
|
||||||
|
|
|
@ -272,17 +272,17 @@ class Installer {
|
||||||
*/
|
*/
|
||||||
public function upgrade($version_from, $version_to) {
|
public function upgrade($version_from, $version_to) {
|
||||||
if(version_compare($version_from, '2.1.0', '<')) {
|
if(version_compare($version_from, '2.1.0', '<')) {
|
||||||
// upgrade to 2.1.0
|
|
||||||
$this->upgrade210();
|
$this->upgrade210();
|
||||||
}
|
}
|
||||||
if(version_compare($version_from, '3.0.0', '<')) {
|
if(version_compare($version_from, '3.0.0', '<')) {
|
||||||
// upgrade to 3.0.0
|
|
||||||
$this->upgrade300();
|
$this->upgrade300();
|
||||||
}
|
}
|
||||||
if(version_compare($version_from, '3.1.0', '<')) {
|
if(version_compare($version_from, '3.1.0', '<')) {
|
||||||
// upgrade to 3.1.0
|
|
||||||
$this->upgrade310();
|
$this->upgrade310();
|
||||||
}
|
}
|
||||||
|
if(version_compare($version_from, '3.2.0', '<')) {
|
||||||
|
$this->upgrade320();
|
||||||
|
}
|
||||||
psm_update_conf('version', $version_to);
|
psm_update_conf('version', $version_to);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -422,4 +422,12 @@ class Installer {
|
||||||
|
|
||||||
$this->execSQL($queries);
|
$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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue