Просмотр файла upgrade/migrations/20161207150531_add_vote_to_pollings.php

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

use Phinx\Migration\AbstractMigration;

class AddVoteToPollings extends AbstractMigration
{
    /**
     * Migrate Up.
     */
    public function change()
    {
        $table = $this->table('pollings');
        $table->addColumn('vote', 'boolean', [
            'after' => 'user',
            'default' => true
        ])
            ->update();
    }
}