modified 优化初始化数据

This commit is contained in:
zhaoxiang 2020-06-08 14:16:32 +08:00
parent 3cfffb7ed5
commit 143b10b891

View File

@ -34,5 +34,6 @@ class UpdateAdminMenuData extends Migrator {
$this->execute('UPDATE `admin_menu` SET `auth` = 1 WHERE `url` != "admin/Login/index";');
$this->execute('UPDATE `admin_menu` SET `permission` = 0 WHERE `url` = "admin/Login/index" OR `url` = "admin/Login/logout";');
$this->execute('UPDATE `admin_menu` SET `method` = 2 WHERE `url` = "admin/Login/index" OR `url` LIKE "%/upload" OR `url` LIKE "%/add" OR `url` LIKE "%/edit%";');
$this->execute('UPDATE `admin_menu` SET `log` = 0 WHERE `url` = "admin/Login/index";');
}
}