手动添加域名
This commit is contained in:
@@ -40,6 +40,14 @@ class InstallSchema
|
||||
KEY `idx_config_name` (`config_name`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci",
|
||||
|
||||
"CREATE TABLE IF NOT EXISTS `cloak_config_domain` (
|
||||
`config_name` varchar(64) NOT NULL COMMENT 'check_config 配置名',
|
||||
`domain_id` int(11) UNSIGNED NOT NULL COMMENT 'cloak_site_domains.id',
|
||||
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
||||
PRIMARY KEY (`config_name`),
|
||||
KEY `idx_domain_id` (`domain_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci",
|
||||
|
||||
"CREATE TABLE IF NOT EXISTS `visitor_logs` (
|
||||
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
`campagin_id` varchar(20) NOT NULL COMMENT '策略ID',
|
||||
@@ -101,7 +109,7 @@ class InstallSchema
|
||||
|
||||
return [
|
||||
'ok' => true,
|
||||
'tables' => ['ip_groups', 'ip_list', 'cloak_site_domains', 'visitor_logs'],
|
||||
'tables' => ['ip_groups', 'ip_list', 'cloak_site_domains', 'cloak_config_domain', 'visitor_logs'],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user