View file database/upgrades/20180306180440_rename_comments_in_downs.php

File size: 285B
<?php

use Phinx\Migration\AbstractMigration;

class RenameCommentsInDowns extends AbstractMigration
{
    /**
     * Migrate Change.
     */
    public function change()
    {
        $table = $this->table('downs');
        $table->renameColumn('comments', 'count_comments');
    }
}