From ca89fe85b768ca8fa7b4e7f6c92940699d3c399f Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: Mon, 21 Aug 2023 17:58:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=B5=84=E6=BA=90=E5=85=B3?= =?UTF-8?q?=E8=81=94=E8=A1=A8sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/common.sql | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sql/common.sql b/sql/common.sql index a7e9a1e3..e839e125 100644 --- a/sql/common.sql +++ b/sql/common.sql @@ -74,15 +74,14 @@ CREATE TABLE `wvp_common_platform_channel` UNIQUE KEY `uk_platform_id_common_gb_channel_id` (`platform_id`,`common_gb_channel_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci -CREATE TABLE `wvp_common_platform_channel` +CREATE TABLE `wvp_common_platform_region` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `platform_id` varchar(50) DEFAULT NULL, - `catalog_id` varchar(50) DEFAULT NULL, - `device_channel_id` int DEFAULT NULL, + `region_id` int DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`), - UNIQUE KEY `uk_platform_gb_channel_platform_id_catalog_id_device_channel_id` (`platform_id`,`catalog_id`,`device_channel_id`) + UNIQUE KEY `uk_platform_region_id` (`platform_id`,`region_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci