View file database/upgrades/20180720163158_add_phone_to_users.php

File size: 336B
<?php

use Phinx\Migration\AbstractMigration;

class AddPhoneToUsers extends AbstractMigration
{
    /**
     * Migrate Up.
     */
    public function change()
    {
        $table = $this->table('users');
        $table->addColumn('phone', 'string', ['limit' => 15, 'after' => 'site', 'null' => true])
            ->update();
    }
}