modified 再次优化数据库

This commit is contained in:
zhaoxiang 2020-05-21 17:42:29 +08:00
parent f111e8b28c
commit ec87456d59

View File

@ -33,6 +33,10 @@ class ChangeAdminMenuField extends Migrator {
'limit' => MysqlAdapter::INT_TINY,
'default' => 1,
'comment' => '菜单层级1-一级菜单2-二级菜单3-按钮'
])->changeColumn('auth', 'integer', [
'limit' => MysqlAdapter::INT_TINY,
'default' => 1,
'comment' => '是否需要登录才可以访问1-需要0-不需要'
])->changeColumn('show', 'integer', [
'limit' => MysqlAdapter::INT_TINY,
'default' => 1,
@ -45,6 +49,14 @@ class ChangeAdminMenuField extends Migrator {
'limit' => 255,
'default' => '',
'comment' => '前端路由'
])->addColumn('log', 'integer', [
'limit' => MysqlAdapter::INT_TINY,
'default' => 1,
'comment' => '是否记录日志1-记录0-不记录'
])->addColumn('permission', 'integer', [
'limit' => MysqlAdapter::INT_TINY,
'default' => 1,
'comment' => '是否验证权限1-鉴权0-放行'
])->update();
}