Merge pull request #433 from radiorabe/fix/429-ipv6-schema-updates

Fix/429 ipv6 schema updates
This commit is contained in:
Robb 2018-02-10 16:34:23 -05:00 committed by GitHub
commit efe0aefddc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 20 additions and 4 deletions

View file

@ -0,0 +1,2 @@
ALTER TABLE cc_service_register ALTER COLUMN ip TYPE character varying(18);

View file

@ -0,0 +1 @@
ALTER TABLE cc_service_register ALTER COLUMN ip TYPE character varying(45);

View file

@ -39,7 +39,7 @@ class CcServiceRegisterTableMap extends TableMap
$this->setUseIdGenerator(false);
// columns
$this->addPrimaryKey('name', 'DbName', 'VARCHAR', true, 32, null);
$this->addColumn('ip', 'DbIp', 'VARCHAR', true, 18, null);
$this->addColumn('ip', 'DbIp', 'VARCHAR', true, 45, null);
// validators
} // initialize()

View file

@ -518,4 +518,17 @@ class AirtimeUpgrader300alpha1 extends AirtimeUpgrader
public function getNewVersion() {
return '3.0.0-alpha.1';
}
}
}
class AirtimeUpgrader300alpha6 extends AirtimeUpgrader
{
protected function getSupportedSchemaVersions() {
return array(
'3.0.0-alpha.1'
);
}
public function getNewVersion() {
return '3.0.0-alpha.6';
}
}