View file upgrade/migrations/20161113015647_rename_fields_in_files_forum2.php
<?php use Phinx\Migration\AbstractMigration; class RenameFieldsInFilesForum2 extends AbstractMigration { /** * Migrate Change. */ public function change() { $table = $this->table('files_forum'); $table->renameColumn('topics_id', 'topic_id'); $table->renameColumn('posts_id', 'post_id'); } }