View file database/upgrades/20180420131034_edit_fields_in_bookmarks.php

File size: 439B
<?php

use Phinx\Migration\AbstractMigration;

class EditFieldsInBookmarks extends AbstractMigration
{
    /**
     * Migrate Up.
     */
    public function up()
    {
        $table = $this->table('bookmarks');
        $table
            ->changeColumn('topic_id', 'integer')
            ->changeColumn('count_posts', 'integer')
            ->save();
    }

    /**
     * Migrate Down.
     */
    public function down()
    {

    }
}