cerebrate/config/Migrations/20210628104235_RolesPermSyn...

18 lines
351 B
PHP

<?php
declare(strict_types=1);
use Migrations\AbstractMigration;
class RolesPermSync extends AbstractMigration
{
public function change()
{
$table = $this->table('roles')
->addColumn('perm_sync', 'boolean', [
'default' => 0,
'null' => false,
])
->update();
}
}