View file upgrade/migrations/20161104012823_rename_fields_in_bookmarks.php

File size: 488B
<?php

use Phinx\Migration\AbstractMigration;

class RenameFieldsInBookmarks extends AbstractMigration
{
    /**
     * Migrate Change.
     */
    public function change()
    {
        $table = $this->table('bookmarks');
        $table->renameColumn('book_id', 'id');
        $table->renameColumn('book_user', 'user');
        $table->renameColumn('book_topic', 'topic');
        $table->renameColumn('book_forum', 'forum');
        $table->renameColumn('book_posts', 'posts');
    }
}