Просмотр файла upgrade/migrations/20161214200247_change_fields_in_banhist.php

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

use Phinx\Migration\AbstractMigration;

class ChangeFieldsInBanhist extends AbstractMigration
{
    /**
     * Migrate Up.
     */
    public function up()
    {
        $users = $this->table('banhist');
        $users->changeColumn('reason', 'text', ['null' => true])
            ->changeColumn('type', 'boolean', ['default' => 0])
            ->changeColumn('term', 'integer')
            ->changeColumn('time', 'integer')
            ->save();
    }

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

    }
}