diff --git a/sql/common.sql b/sql/common.sql index deb1a247..e1a2affb 100644 --- a/sql/common.sql +++ b/sql/common.sql @@ -70,8 +70,8 @@ CREATE TABLE `wvp_common_region` CREATE TABLE `wvp_common_platform_channel` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, - `platform_id` varchar(50) NOT NULL, - `common_gb_channel_id` varchar(50) NOT NULL, + `platform_id` bigint unsigned NOT NULL, + `common_gb_channel_id` bigint unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`), UNIQUE KEY `uk_platform_id_common_gb_channel_id` (`platform_id`,`common_gb_channel_id`) @@ -79,17 +79,10 @@ CREATE TABLE `wvp_common_platform_channel` DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci; -CREATE TABLE `wvp_common_platform_region` -( - `id` bigint unsigned NOT NULL AUTO_INCREMENT, - `platform_id` varchar(50) NOT NULL, - `region_id` varchar(50) NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `id` (`id`), - UNIQUE KEY `uk_platform_region_id` (`platform_id`,`region_id`) -) ENGINE = InnoDB - DEFAULT CHARSET = utf8mb4 - COLLATE = utf8mb4_0900_ai_ci; +drop table `wvp_platform_catalog`; +drop table `wvp_platform_gb_channel`; +drop table `wvp_platform_gb_stream`; +drop table `wvp_resources_tree`;