View file upgrade/migrations/20161215210647_change_fields_in_trash.php

File size: 482B
<?php

use Phinx\Migration\AbstractMigration;

class ChangeFieldsInTrash extends AbstractMigration
{
    /**
     * Migrate Up.
     */
    public function up()
    {
        $users = $this->table('trash');
        $users
            ->changeColumn('text', 'text', ['null' => true])
            ->changeColumn('time', 'integer')
            ->changeColumn('del', 'integer')
            ->save();
    }

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

    }
}