chg: [migrations:roles] Added perm_sync column

pull/67/head
mokaddem 2021-06-28 10:50:29 +02:00
parent 6e2a541e4f
commit 95299430b8
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
<?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();
}
}