fixed bug
This commit is contained in:
parent
b3682b1ee6
commit
e7295fa767
@ -28,6 +28,7 @@ class ChangePermissions extends Migrator
|
||||
*/
|
||||
public function change()
|
||||
{
|
||||
if ($this->hasTable('permissions')) {
|
||||
$table = $this->table('permissions');
|
||||
|
||||
$table->addColumn('component', 'string', ['default' => '', 'comment' => '组件名称', 'limit' => '255', 'after' => 'permission_mark'])
|
||||
@ -37,3 +38,4 @@ class ChangePermissions extends Migrator
|
||||
->update();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -28,9 +28,11 @@ class PermissionsAddColumn extends Migrator
|
||||
*/
|
||||
public function change()
|
||||
{
|
||||
if ($this->hasTable('permissions')) {
|
||||
$table = $this->table('permissions');
|
||||
|
||||
$table->addColumn('level', 'string', ['default' => '', 'comment' => '层级', 'limit' => '50', 'after' => 'parent_id'])
|
||||
->update();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user