View file database/upgrades/20180306172851_rename_posts_in_topics.php

File size: 278B
<?php

use Phinx\Migration\AbstractMigration;

class RenamePostsInTopics extends AbstractMigration
{
    /**
     * Migrate Change.
     */
    public function change()
    {
        $table = $this->table('topics');
        $table->renameColumn('posts', 'count_posts');
    }
}