From 51dd94d3a7554ebca1c31e739ea1b2a92e92ddfe Mon Sep 17 00:00:00 2001 From: heavyrian2012 Date: Thu, 8 Jan 2026 15:57:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E4=B8=93=E4=B8=9A=E7=89=88IM?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E6=95=B0=E6=8D=AE=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../h2/V55__create_conference_table.sql | 13 ++++++++++++ .../V56__create_join_group_request_table.sql | 17 +++++++++++++++ .../mysql/V65__create_conference_table.sql | 16 ++++++++++++++ .../V66__create_join_group_request_table.sql | 21 +++++++++++++++++++ 4 files changed, 67 insertions(+) create mode 100755 broker/migrate/h2/V55__create_conference_table.sql create mode 100755 broker/migrate/h2/V56__create_join_group_request_table.sql create mode 100755 broker/migrate/mysql/V65__create_conference_table.sql create mode 100755 broker/migrate/mysql/V66__create_join_group_request_table.sql diff --git a/broker/migrate/h2/V55__create_conference_table.sql b/broker/migrate/h2/V55__create_conference_table.sql new file mode 100755 index 00000000..525981e5 --- /dev/null +++ b/broker/migrate/h2/V55__create_conference_table.sql @@ -0,0 +1,13 @@ + +DROP TABLE IF EXISTS `t_conference`; +CREATE TABLE `t_conference` ( + `_id` varchar(64) NOT NULL PRIMARY KEY, + `_des` varchar(64) NOT NULL, + `_pin` varchar(16) NOT NULL, + `_max_publishers` int(11) NOT NULL DEFAULT 0, + `_bitrate` int(11) NOT NULL DEFAULT 0, + `_advance` tinyint NOT NULL DEFAULT 0, + `_recording` tinyint NOT NULL DEFAULT 0, + `_create_dt` bigint(20) NOT NULL +); + diff --git a/broker/migrate/h2/V56__create_join_group_request_table.sql b/broker/migrate/h2/V56__create_join_group_request_table.sql new file mode 100755 index 00000000..3104c855 --- /dev/null +++ b/broker/migrate/h2/V56__create_join_group_request_table.sql @@ -0,0 +1,17 @@ +DROP TABLE IF EXISTS `t_join_group_request`; +CREATE TABLE `t_join_group_request` ( + `id` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT, + `_uid` varchar(64) NOT NULL, + `_gid` varchar(64) NOT NULL, + `_mid` varchar(64) NOT NULL, + `_request_uid` varchar(64) NOT NULL, + `_accept_uid` varchar(64) DEFAULT NULL, + `_reason` TEXT DEFAULT NULL, + `_extra` TEXT DEFAULT NULL, + `_status` tinyint NOT NULL DEFAULT 0, + `_dt` bigint(20) NOT NULL, + `_read_status` tinyint DEFAULT 0, + UNIQUE INDEX `join_group_request_key_index` (`_uid` DESC, `_gid` DESC, `_mid` DESC, `_request_uid` DESC), + INDEX `join_group_request_gm_index` (`_gid` DESC, `_mid` DESC), + INDEX `join_group_request_sync_index` (`_uid` DESC, `_dt` DESC) +); diff --git a/broker/migrate/mysql/V65__create_conference_table.sql b/broker/migrate/mysql/V65__create_conference_table.sql new file mode 100755 index 00000000..8f0aad54 --- /dev/null +++ b/broker/migrate/mysql/V65__create_conference_table.sql @@ -0,0 +1,16 @@ + +DROP TABLE IF EXISTS `t_conference`; +CREATE TABLE `t_conference` ( + `_id` varchar(64) NOT NULL PRIMARY KEY, + `_des` varchar(64) NOT NULL, + `_pin` varchar(16) NOT NULL, + `_max_publishers` int(11) NOT NULL DEFAULT 0, + `_bitrate` int(11) NOT NULL DEFAULT 0, + `_advance` tinyint NOT NULL DEFAULT 0, + `_recording` tinyint NOT NULL DEFAULT 0, + `_create_dt` bigint(20) NOT NULL +) +ENGINE = InnoDB +DEFAULT CHARACTER SET = utf8mb4 +COLLATE = utf8mb4_unicode_ci; + diff --git a/broker/migrate/mysql/V66__create_join_group_request_table.sql b/broker/migrate/mysql/V66__create_join_group_request_table.sql new file mode 100755 index 00000000..a2cb74dd --- /dev/null +++ b/broker/migrate/mysql/V66__create_join_group_request_table.sql @@ -0,0 +1,21 @@ + +DROP TABLE IF EXISTS `t_join_group_request`; +CREATE TABLE `t_join_group_request` ( + `id` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT, + `_uid` varchar(64) NOT NULL, + `_gid` varchar(64) NOT NULL, + `_mid` varchar(64) NOT NULL, + `_request_uid` varchar(64) NOT NULL, + `_accept_uid` varchar(64) DEFAULT NULL, + `_reason` TEXT DEFAULT NULL, + `_extra` TEXT DEFAULT NULL, + `_status` tinyint NOT NULL DEFAULT 0, + `_dt` bigint(20) NOT NULL, + `_read_status` tinyint DEFAULT 0, + UNIQUE INDEX `join_group_request_key_index` (`_uid` DESC, `_gid` DESC, `_mid` DESC, `_request_uid` DESC), + INDEX `join_group_request_gm_index` (`_gid` DESC, `_mid` DESC), + INDEX `join_group_request_sync_index` (`_uid` DESC, `_dt` DESC) +) +ENGINE = InnoDB +DEFAULT CHARACTER SET = utf8mb4 +COLLATE = utf8mb4_unicode_ci;