View file database/upgrades/20180306174751_rename_posts_in_bookmarks.php

File size: 284B
<?php

use Phinx\Migration\AbstractMigration;

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