优化数据库表结构
parent
e44be505d9
commit
628bffd21a
|
@ -70,8 +70,8 @@ CREATE TABLE `wvp_common_region`
|
||||||
CREATE TABLE `wvp_common_platform_channel`
|
CREATE TABLE `wvp_common_platform_channel`
|
||||||
(
|
(
|
||||||
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
|
||||||
`platform_id` varchar(50) NOT NULL,
|
`platform_id` bigint unsigned NOT NULL,
|
||||||
`common_gb_channel_id` varchar(50) NOT NULL,
|
`common_gb_channel_id` bigint unsigned NOT NULL,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
UNIQUE KEY `id` (`id`),
|
UNIQUE KEY `id` (`id`),
|
||||||
UNIQUE KEY `uk_platform_id_common_gb_channel_id` (`platform_id`,`common_gb_channel_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
|
DEFAULT CHARSET = utf8mb4
|
||||||
COLLATE = utf8mb4_0900_ai_ci;
|
COLLATE = utf8mb4_0900_ai_ci;
|
||||||
|
|
||||||
CREATE TABLE `wvp_common_platform_region`
|
drop table `wvp_platform_catalog`;
|
||||||
(
|
drop table `wvp_platform_gb_channel`;
|
||||||
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
|
drop table `wvp_platform_gb_stream`;
|
||||||
`platform_id` varchar(50) NOT NULL,
|
drop table `wvp_resources_tree`;
|
||||||
`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;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue