添加admin_log表

pull/324/head
wanger 2021-05-27 20:08:48 +08:00 committed by F4nniu
parent 6edcaffa75
commit f05e5ae722
1 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,8 @@ class Crud extends Command
* 受保护的系统表,crud不会生效 * 受保护的系统表,crud不会生效
*/ */
protected $systemTable = [ protected $systemTable = [
'admin', 'attachment', 'auth_group', 'auth_group_access', 'auth_rule', 'category', 'config' 'admin','admin_log','auth_group','auth_group_access','auth_rule',
'attachment', 'config','category'
]; ];
/** /**
@ -313,7 +314,7 @@ class Crud extends Command
if(in_array(str_replace($prefix,"",$table),$this->systemTable)){ if(in_array(str_replace($prefix,"",$table),$this->systemTable)){
throw new Exception('system table name can\'t crud'); throw new Exception('system table name can\'t crud');
} }
//模块 //模块
$moduleName = 'admin'; $moduleName = 'admin';
$modelModuleName = $local ? $moduleName : 'common'; $modelModuleName = $local ? $moduleName : 'common';