From e139676151ccd7b1cbe6b6920f03de2a3636251f Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: Sat, 11 Jan 2025 22:32:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=A0=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E8=B7=AF=E5=BE=84=E5=AE=9A=E4=B9=89=E9=95=BF=E5=BA=A6?= =?UTF-8?q?=E7=9F=AD=E5=AF=BC=E8=87=B4=E8=AE=B0=E5=BD=95=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 数据库/2.7.3/初始化-mysql-2.7.3.sql | 7 +++---- 数据库/2.7.3/初始化-postgresql-kingbase-2.7.3.sql | 4 ++-- 数据库/2.7.3/更新-mysql-2.7.3.sql | 9 ++++++++- 数据库/2.7.3/更新-postgresql-kingbase-2.7.3.sql | 13 +++++++++++++ 4 files changed, 26 insertions(+), 7 deletions(-) diff --git a/数据库/2.7.3/初始化-mysql-2.7.3.sql b/数据库/2.7.3/初始化-mysql-2.7.3.sql index 17a73f32..c147fd9c 100644 --- a/数据库/2.7.3/初始化-mysql-2.7.3.sql +++ b/数据库/2.7.3/初始化-mysql-2.7.3.sql @@ -336,12 +336,11 @@ create table wvp_cloud_record end_time bigint, media_server_id character varying(50), file_name character varying(255), - folder character varying(255), - file_path character varying(255), + folder character varying(500), + file_path character varying(500), collect bool default false, file_size bigint, - time_len bigint, - constraint uk_stream_push_app_stream_path unique (app, stream, file_path) + time_len bigint ); create table wvp_user diff --git a/数据库/2.7.3/初始化-postgresql-kingbase-2.7.3.sql b/数据库/2.7.3/初始化-postgresql-kingbase-2.7.3.sql index 5a2b7fc8..0695e410 100644 --- a/数据库/2.7.3/初始化-postgresql-kingbase-2.7.3.sql +++ b/数据库/2.7.3/初始化-postgresql-kingbase-2.7.3.sql @@ -352,8 +352,8 @@ create table wvp_cloud_record end_time int8, media_server_id character varying(50), file_name character varying(255), - folder character varying(255), - file_path character varying(255), + folder character varying(500), + file_path character varying(500), collect bool default false, file_size int8, time_len int8, diff --git a/数据库/2.7.3/更新-mysql-2.7.3.sql b/数据库/2.7.3/更新-mysql-2.7.3.sql index 17101e6b..01f42da4 100644 --- a/数据库/2.7.3/更新-mysql-2.7.3.sql +++ b/数据库/2.7.3/更新-mysql-2.7.3.sql @@ -33,4 +33,11 @@ alter table wvp_device_channel drop stream_proxy_id; /* * 20241231 */ -alter table wvp_stream_proxy add relates_media_server_id character varying(50); \ No newline at end of file +alter table wvp_stream_proxy add relates_media_server_id character varying(50); + +/* +* 20250111 +*/ +drop index uk_stream_push_app_stream_path on wvp_cloud_record; +alter table wvp_cloud_record change folder folder varchar(500) null; +alter table wvp_cloud_record change file_path file_path varchar(500) null; \ No newline at end of file diff --git a/数据库/2.7.3/更新-postgresql-kingbase-2.7.3.sql b/数据库/2.7.3/更新-postgresql-kingbase-2.7.3.sql index 237c9d75..8317bce7 100644 --- a/数据库/2.7.3/更新-postgresql-kingbase-2.7.3.sql +++ b/数据库/2.7.3/更新-postgresql-kingbase-2.7.3.sql @@ -27,3 +27,16 @@ set data_type = 3, data_device_id = (SELECT stream_proxy_id from wvp_device_chan alter table wvp_device_channel drop device_db_id; alter table wvp_device_channel drop stream_push_id; alter table wvp_device_channel drop stream_proxy_id; + +/* +* 20241231 +*/ +alter table wvp_stream_proxy add relates_media_server_id character varying(50); + + +/* +* 20250111 +*/ +drop index uk_stream_push_app_stream_path on wvp_cloud_record; +alter table wvp_cloud_record change folder folder varchar(500) null; +alter table wvp_cloud_record change file_path file_path varchar(500) null; \ No newline at end of file