修复因数据库路径定义长度短导致记录无法添加的BUG
parent
5480e68b86
commit
e139676151
|
@ -336,12 +336,11 @@ create table wvp_cloud_record
|
||||||
end_time bigint,
|
end_time bigint,
|
||||||
media_server_id character varying(50),
|
media_server_id character varying(50),
|
||||||
file_name character varying(255),
|
file_name character varying(255),
|
||||||
folder character varying(255),
|
folder character varying(500),
|
||||||
file_path character varying(255),
|
file_path character varying(500),
|
||||||
collect bool default false,
|
collect bool default false,
|
||||||
file_size bigint,
|
file_size bigint,
|
||||||
time_len bigint,
|
time_len bigint
|
||||||
constraint uk_stream_push_app_stream_path unique (app, stream, file_path)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
create table wvp_user
|
create table wvp_user
|
||||||
|
|
|
@ -352,8 +352,8 @@ create table wvp_cloud_record
|
||||||
end_time int8,
|
end_time int8,
|
||||||
media_server_id character varying(50),
|
media_server_id character varying(50),
|
||||||
file_name character varying(255),
|
file_name character varying(255),
|
||||||
folder character varying(255),
|
folder character varying(500),
|
||||||
file_path character varying(255),
|
file_path character varying(500),
|
||||||
collect bool default false,
|
collect bool default false,
|
||||||
file_size int8,
|
file_size int8,
|
||||||
time_len int8,
|
time_len int8,
|
||||||
|
|
|
@ -33,4 +33,11 @@ alter table wvp_device_channel drop stream_proxy_id;
|
||||||
/*
|
/*
|
||||||
* 20241231
|
* 20241231
|
||||||
*/
|
*/
|
||||||
alter table wvp_stream_proxy add relates_media_server_id character varying(50);
|
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;
|
|
@ -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 device_db_id;
|
||||||
alter table wvp_device_channel drop stream_push_id;
|
alter table wvp_device_channel drop stream_push_id;
|
||||||
alter table wvp_device_channel drop stream_proxy_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;
|
Loading…
Reference in New Issue