Просмотр файла database/upgrades/20180306180640_rename_comments_in_news.php
<?php use Phinx\Migration\AbstractMigration; class RenameCommentsInNews extends AbstractMigration { /** * Migrate Change. */ public function change() { $table = $this->table('news'); $table->renameColumn('comments', 'count_comments'); } }