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;