View file database/upgrades/20180420173831_edit_fields_in_transfers.php

File size: 401B
<?php

use Phinx\Migration\AbstractMigration;

class EditFieldsInTransfers extends AbstractMigration
{
    /**
     * Migrate Up.
     */
    public function up()
    {
        $table = $this->table('transfers');
        $table
            ->changeColumn('total', 'integer', ['default' => 0])
            ->save();
    }

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

    }
}