Run schema update and add migration script
This commit is contained in:
parent
ca9f156b3c
commit
313342c297
4 changed files with 18 additions and 2 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
ALTER TABLE cc_service_register ALTER COLUMN ip TYPE character varying(18);
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
ALTER TABLE cc_service_register ALTER COLUMN ip TYPE character varying(45);
|
|
@ -39,7 +39,7 @@ class CcServiceRegisterTableMap extends TableMap
|
||||||
$this->setUseIdGenerator(false);
|
$this->setUseIdGenerator(false);
|
||||||
// columns
|
// columns
|
||||||
$this->addPrimaryKey('name', 'DbName', 'VARCHAR', true, 32, null);
|
$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
|
// validators
|
||||||
} // initialize()
|
} // initialize()
|
||||||
|
|
||||||
|
|
|
@ -518,4 +518,17 @@ class AirtimeUpgrader300alpha1 extends AirtimeUpgrader
|
||||||
public function getNewVersion() {
|
public function getNewVersion() {
|
||||||
return '3.0.0-alpha.1';
|
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';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue