View file database/upgrades/20181214152927_add_category_id_to_stickers.php

File size: 347B
<?php

use Phinx\Migration\AbstractMigration;

class AddCategoryIdToStickers extends AbstractMigration
{
    /**
     * Migrate Change.
     */
    public function change(): void
    {
        $table = $this->table('stickers');
        $table->addColumn('category_id', 'integer', ['default' => 1, 'after' => 'id'])
            ->update();
    }
}