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