Просмотр файла upgrade/migrations/20161109004323_rename_fields_in_posts2.php
<?php use Phinx\Migration\AbstractMigration; class RenameFieldsInPosts2 extends AbstractMigration { /** * Migrate Change. */ public function change() { $table = $this->table('posts'); $table->renameColumn('forums_id', 'forum_id'); $table->renameColumn('topics_id', 'topic_id'); } }