2007-11-08 20:12:11 +03:00
|
|
|
<?php
|
|
|
|
class MysqlChangeColumn extends Doctrine_Migration
|
|
|
|
{
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
$this->renameColumn('migration_test','field2','field3');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function down()
|
2007-11-15 08:16:31 +03:00
|
|
|
{
|
|
|
|
$this->renameColumn('migration_test','field3','field2');
|
2007-11-08 20:12:11 +03:00
|
|
|
}
|
2007-11-15 08:16:31 +03:00
|
|
|
}
|