View file database/upgrades/20180306172751_rename_topics_in_forums.php
<?php use Phinx\Migration\AbstractMigration; class RenameTopicsInForums extends AbstractMigration { /** * Migrate Change. */ public function change() { $table = $this->table('forums'); $table->renameColumn('topics', 'count_topics'); $table->renameColumn('posts', 'count_posts'); } }