Просмотр файла upgrade/migrations/20161214202747_change_fields_in_cats.php

Размер файла: 476B
<?php

use Phinx\Migration\AbstractMigration;

class ChangeFieldsInCats extends AbstractMigration
{
    /**
     * Migrate Up.
     */
    public function up()
    {
        $users = $this->table('cats');
        $users
            ->changeColumn('folder', 'string', ['limit' => 50, 'null' => 'true'])
            ->changeColumn('closed', 'boolean', ['default' => 0])
            ->save();
    }

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

    }
}