From 5a70a4742dad4dded0916365a0c9591501233ec0 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: Tue, 28 May 2024 10:39:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=95=B0=E6=8D=AE=E5=BA=93sq?= =?UTF-8?q?l=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 数据库/2.7.1/初始化-mysql-2.7.1.sql | 17 ++++++++++++ .../2.7.1/初始化-postgresql-kingbase-2.7.1.sql | 17 ++++++++++++ 数据库/2.7.1/更新-mysql-2.7.1.sql | 26 ++++++++++++++++++- .../2.7.1/更新-postgresql-kingbase-2.7.1.sql | 26 ++++++++++++++++++- .../初始化-mysql-2.7.2.sql} | 3 +++ .../初始化-postgresql-kingbase-2.7.2.sql} | 3 +++ .../更新-mysql-2.7.2.sql} | 3 +++ .../更新-postgresql-kingbase-2.7.2.sql} | 3 +++ 8 files changed, 96 insertions(+), 2 deletions(-) rename 数据库/{2.7.1/初始化-mysql-2.7.0.sql => 2.7.2/初始化-mysql-2.7.2.sql} (99%) rename 数据库/{2.7.1/初始化-postgresql-kingbase-2.7.0.sql => 2.7.2/初始化-postgresql-kingbase-2.7.2.sql} (99%) rename 数据库/{2.7.1/更新-mysql-2.7.0.sql => 2.7.2/更新-mysql-2.7.2.sql} (91%) rename 数据库/{2.7.1/更新-postgresql-kingbase-2.7.0.sql => 2.7.2/更新-postgresql-kingbase-2.7.2.sql} (91%) diff --git a/数据库/2.7.1/初始化-mysql-2.7.1.sql b/数据库/2.7.1/初始化-mysql-2.7.1.sql index ee828f41..98d43404 100644 --- a/数据库/2.7.1/初始化-mysql-2.7.1.sql +++ b/数据库/2.7.1/初始化-mysql-2.7.1.sql @@ -154,8 +154,13 @@ create table wvp_media_server ( rtp_proxy_port integer, rtsp_port integer, rtsp_ssl_port integer, + flv_port integer, + flv_ssl_port integer, + ws_flv_port integer, + ws_flv_ssl_port integer, auto_config bool default false, secret character varying(50), + type character varying(50) default 'zlm', rtp_enable bool default false, rtp_port_range character varying(50), send_rtp_port_range character varying(50), @@ -316,6 +321,18 @@ create table wvp_resources_tree ( path character varying(255) ); +create table wvp_user_api_key ( + id serial primary key , + user_id bigint, + app character varying(255) , + api_key text, + expired_at bigint, + remark character varying(255), + enable bool default true, + create_time character varying(50), + update_time character varying(50) +); + /*初始数据*/ INSERT INTO wvp_user VALUES (1, 'admin','21232f297a57a5a743894a0e4a801fc3',1,'2021-04-13 14:14:57','2021-04-13 14:14:57','3e80d1762a324d5b0ff636e0bd16f1e3'); diff --git a/数据库/2.7.1/初始化-postgresql-kingbase-2.7.1.sql b/数据库/2.7.1/初始化-postgresql-kingbase-2.7.1.sql index 86a63d94..eb2bc838 100644 --- a/数据库/2.7.1/初始化-postgresql-kingbase-2.7.1.sql +++ b/数据库/2.7.1/初始化-postgresql-kingbase-2.7.1.sql @@ -154,8 +154,13 @@ create table wvp_media_server ( rtp_proxy_port integer, rtsp_port integer, rtsp_ssl_port integer, + flv_port integer, + flv_ssl_port integer, + ws_flv_port integer, + ws_flv_ssl_port integer, auto_config bool default false, secret character varying(50), + type character varying(50) default 'zlm', rtp_enable bool default false, rtp_port_range character varying(50), send_rtp_port_range character varying(50), @@ -316,6 +321,18 @@ create table wvp_resources_tree ( path character varying(255) ); +create table wvp_user_api_key ( + id serial primary key , + user_id bigint, + app character varying(255) , + api_key text, + expired_at bigint, + remark character varying(255), + enable bool default true, + create_time character varying(50), + update_time character varying(50) +); + /*初始数据*/ INSERT INTO wvp_user VALUES (1, 'admin','21232f297a57a5a743894a0e4a801fc3',1,'2021-04-13 14:14:57','2021-04-13 14:14:57','3e80d1762a324d5b0ff636e0bd16f1e3'); diff --git a/数据库/2.7.1/更新-mysql-2.7.1.sql b/数据库/2.7.1/更新-mysql-2.7.1.sql index 86e8d0de..dff85707 100644 --- a/数据库/2.7.1/更新-mysql-2.7.1.sql +++ b/数据库/2.7.1/更新-mysql-2.7.1.sql @@ -1,2 +1,26 @@ alter table wvp_media_server - add transcode_suffix character varying(255); \ No newline at end of file + add transcode_suffix character varying(255); + +alter table wvp_media_server + add type character varying(50) default 'zlm'; + +alter table wvp_media_server + add flv_port integer; +alter table wvp_media_server + add flv_ssl_port integer; +alter table wvp_media_server + add ws_flv_port integer; +alter table wvp_media_server + add ws_flv_ssl_port integer; + +create table wvp_user_api_key ( + id serial primary key , + user_id bigint, + app character varying(255) , + api_key text, + expired_at bigint, + remark character varying(255), + enable bool default true, + create_time character varying(50), + update_time character varying(50) +); \ No newline at end of file diff --git a/数据库/2.7.1/更新-postgresql-kingbase-2.7.1.sql b/数据库/2.7.1/更新-postgresql-kingbase-2.7.1.sql index 86e8d0de..dff85707 100644 --- a/数据库/2.7.1/更新-postgresql-kingbase-2.7.1.sql +++ b/数据库/2.7.1/更新-postgresql-kingbase-2.7.1.sql @@ -1,2 +1,26 @@ alter table wvp_media_server - add transcode_suffix character varying(255); \ No newline at end of file + add transcode_suffix character varying(255); + +alter table wvp_media_server + add type character varying(50) default 'zlm'; + +alter table wvp_media_server + add flv_port integer; +alter table wvp_media_server + add flv_ssl_port integer; +alter table wvp_media_server + add ws_flv_port integer; +alter table wvp_media_server + add ws_flv_ssl_port integer; + +create table wvp_user_api_key ( + id serial primary key , + user_id bigint, + app character varying(255) , + api_key text, + expired_at bigint, + remark character varying(255), + enable bool default true, + create_time character varying(50), + update_time character varying(50) +); \ No newline at end of file diff --git a/数据库/2.7.1/初始化-mysql-2.7.0.sql b/数据库/2.7.2/初始化-mysql-2.7.2.sql similarity index 99% rename from 数据库/2.7.1/初始化-mysql-2.7.0.sql rename to 数据库/2.7.2/初始化-mysql-2.7.2.sql index 48ed8cbd..98d43404 100644 --- a/数据库/2.7.1/初始化-mysql-2.7.0.sql +++ b/数据库/2.7.2/初始化-mysql-2.7.2.sql @@ -171,6 +171,7 @@ create table wvp_media_server ( hook_alive_interval integer, record_path character varying(255), record_day integer default 7, + transcode_suffix character varying(255), constraint uk_media_server_unique_ip_http_port unique (ip, http_port) ); @@ -319,6 +320,7 @@ create table wvp_resources_tree ( parentId integer, path character varying(255) ); + create table wvp_user_api_key ( id serial primary key , user_id bigint, @@ -331,6 +333,7 @@ create table wvp_user_api_key ( update_time character varying(50) ); + /*初始数据*/ INSERT INTO wvp_user VALUES (1, 'admin','21232f297a57a5a743894a0e4a801fc3',1,'2021-04-13 14:14:57','2021-04-13 14:14:57','3e80d1762a324d5b0ff636e0bd16f1e3'); INSERT INTO wvp_user_role VALUES (1, 'admin','0','2021-04-13 14:14:57','2021-04-13 14:14:57'); diff --git a/数据库/2.7.1/初始化-postgresql-kingbase-2.7.0.sql b/数据库/2.7.2/初始化-postgresql-kingbase-2.7.2.sql similarity index 99% rename from 数据库/2.7.1/初始化-postgresql-kingbase-2.7.0.sql rename to 数据库/2.7.2/初始化-postgresql-kingbase-2.7.2.sql index 78bafe20..eb2bc838 100644 --- a/数据库/2.7.1/初始化-postgresql-kingbase-2.7.0.sql +++ b/数据库/2.7.2/初始化-postgresql-kingbase-2.7.2.sql @@ -171,6 +171,7 @@ create table wvp_media_server ( hook_alive_interval integer, record_path character varying(255), record_day integer default 7, + transcode_suffix character varying(255), constraint uk_media_server_unique_ip_http_port unique (ip, http_port) ); @@ -319,6 +320,7 @@ create table wvp_resources_tree ( parentId integer, path character varying(255) ); + create table wvp_user_api_key ( id serial primary key , user_id bigint, @@ -331,6 +333,7 @@ create table wvp_user_api_key ( update_time character varying(50) ); + /*初始数据*/ INSERT INTO wvp_user VALUES (1, 'admin','21232f297a57a5a743894a0e4a801fc3',1,'2021-04-13 14:14:57','2021-04-13 14:14:57','3e80d1762a324d5b0ff636e0bd16f1e3'); INSERT INTO wvp_user_role VALUES (1, 'admin','0','2021-04-13 14:14:57','2021-04-13 14:14:57'); diff --git a/数据库/2.7.1/更新-mysql-2.7.0.sql b/数据库/2.7.2/更新-mysql-2.7.2.sql similarity index 91% rename from 数据库/2.7.1/更新-mysql-2.7.0.sql rename to 数据库/2.7.2/更新-mysql-2.7.2.sql index b43774fb..dff85707 100644 --- a/数据库/2.7.1/更新-mysql-2.7.0.sql +++ b/数据库/2.7.2/更新-mysql-2.7.2.sql @@ -1,3 +1,6 @@ +alter table wvp_media_server + add transcode_suffix character varying(255); + alter table wvp_media_server add type character varying(50) default 'zlm'; diff --git a/数据库/2.7.1/更新-postgresql-kingbase-2.7.0.sql b/数据库/2.7.2/更新-postgresql-kingbase-2.7.2.sql similarity index 91% rename from 数据库/2.7.1/更新-postgresql-kingbase-2.7.0.sql rename to 数据库/2.7.2/更新-postgresql-kingbase-2.7.2.sql index b43774fb..dff85707 100644 --- a/数据库/2.7.1/更新-postgresql-kingbase-2.7.0.sql +++ b/数据库/2.7.2/更新-postgresql-kingbase-2.7.2.sql @@ -1,3 +1,6 @@ +alter table wvp_media_server + add transcode_suffix character varying(255); + alter table wvp_media_server add type character varying(50) default 'zlm';