Skip to content

Commit c5c480a

Browse files
author
zhaoxiang
committed
modified 优化安装脚本
1 parent 505581a commit c5c480a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

database/migrations/20200324080953_update_admin_menu_data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function up() {
3232
$this->execute('UPDATE `admin_menu` SET `level` = 3 WHERE `url` != "";');
3333
$this->execute('UPDATE `admin_menu` SET `level` = 2 WHERE `level` = 0;');
3434
$this->execute('UPDATE `admin_menu` SET `auth` = 1 WHERE `url` != "admin/Login/index";');
35-
$this->execute('UPDATE `admin_menu` SET `method` = 2 WHERE `url` LIKE "%/upload" OR `url` LIKE "%/add" OR `url` LIKE "%/edit%" OR `url` = "admin/User/own";');
35+
$this->execute('UPDATE `admin_menu` SET `method` = 2 WHERE `url` LIKE "%/upload" OR `url` LIKE "%/add" OR `url` LIKE "%/edit%";');
3636
$this->execute('UPDATE `admin_menu` SET `icon` = "ios-build", `component` = "", `router` = "/system" WHERE `id` = 3;');
3737
$this->execute('UPDATE `admin_menu` SET `icon` = "md-menu", `component` = "system/menu", `router` = "menu" WHERE `id` = 4;');
3838
$this->execute('UPDATE `admin_menu` SET `icon` = "ios-people", `component` = "system/user", `router` = "user" WHERE `id` = 9;');

database/migrations/20200614170824_change_menu_fid.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ class ChangeMenuFid extends Migrator {
2626
*/
2727
public function up() {
2828
$this->execute('UPDATE `admin_menu` SET `fid` = 30 WHERE `id` = 37 OR `id` = 38;');
29+
$this->execute('UPDATE `admin_menu` SET `method` = 2 WHERE `id` = 68;');
2930
}
3031
}

0 commit comments

Comments
 (0)