2024-12-22 08:35:36 +08:00
|
|
|
/*
|
|
|
|
* 20241222
|
|
|
|
*/
|
|
|
|
|
2024-12-27 10:07:22 +08:00
|
|
|
alter table wvp_device_channel
|
|
|
|
drop index uk_wvp_device_channel_unique_device_channel;
|
|
|
|
alter table wvp_device_channel
|
|
|
|
drop index uk_wvp_unique_stream_push_id;
|
|
|
|
alter table wvp_device_channel
|
|
|
|
drop index uk_wvp_unique_stream_proxy_id;
|
|
|
|
|
2024-12-22 08:35:36 +08:00
|
|
|
alter table wvp_device_channel
|
2024-12-23 07:20:48 +08:00
|
|
|
add data_type integer not null;
|
2024-12-22 08:35:36 +08:00
|
|
|
|
|
|
|
alter table wvp_device_channel
|
2024-12-23 07:20:48 +08:00
|
|
|
add data_device_id integer not null;
|
2024-12-22 08:35:36 +08:00
|
|
|
|
|
|
|
update wvp_device_channel wdc
|
|
|
|
set data_type = 1, data_device_id = (SELECT device_db_id from wvp_device_channel where device_db_id is not null and id = wdc.id ) where device_db_id is not null;
|
|
|
|
|
|
|
|
update wvp_device_channel wdc
|
|
|
|
set data_type = 2, data_device_id = (SELECT stream_push_id from wvp_device_channel where stream_push_id is not null and id = wdc.id ) where stream_push_id is not null;
|
|
|
|
|
|
|
|
update wvp_device_channel wdc
|
2024-12-27 16:30:44 +08:00
|
|
|
set data_type = 3, data_device_id = (SELECT stream_proxy_id from wvp_device_channel where stream_proxy_id is not null and id = wdc.id ) where stream_proxy_id is not null;
|
2024-12-22 08:35:36 +08:00
|
|
|
|
|
|
|
alter table wvp_device_channel drop device_db_id;
|
|
|
|
alter table wvp_device_channel drop stream_push_id;
|
2024-12-27 16:30:44 +08:00
|
|
|
alter table wvp_device_channel drop stream_proxy_id;
|
2025-01-11 22:32:57 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* 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;
|