Просмотр файла upgrade/migrations/20161104205553_rename_fields_in_ratedphoto.php
<?php
use Phinx\Migration\AbstractMigration;
class RenameFieldsInRatedphoto extends AbstractMigration
{
/**
* Migrate Change.
*/
public function change()
{
$table = $this->table('ratedphoto');
$table->renameColumn('rated_id', 'id');
$table->renameColumn('rated_photo', 'photo');
$table->renameColumn('rated_user', 'user');
$table->renameColumn('rated_time', 'time');
}
}