Base class for database migration, inspired by Yii.
See more info in README file in same folder.
SuppressWarnings | (PHPMD) |
---|---|
package | Default |
__construct(\CDbConnection $connection,string $options)
\CDbConnection
string
Specific database options like ENGINE=INNODB etc
getVersion(): integer
integer
safeUp(): void
Will rollback transaction and re-throw exception at failure.
Throws |
|
---|
up()
updateVersion()
db :\CDbConnection
var |
---|
\CDbConnection
newVersion :integer
var |
---|
integer