| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503 | 
							
- alter table device
 
-     change deviceId device_id varchar(50) not null;
 
- alter table device
 
-     change streamMode stream_mode varchar(50) null;
 
- alter table device
 
-     change registerTime register_time varchar(50) null;
 
- alter table device
 
-     change keepaliveTime keepalive_time varchar(50) null;
 
- alter table device
 
-     change createTime create_time varchar(50) not null;
 
- alter table device
 
-     change updateTime update_time varchar(50) not null;
 
- alter table device
 
-     change subscribeCycleForCatalog subscribe_cycle_for_catalog bool default false;
 
- alter table device
 
-     change subscribeCycleForMobilePosition subscribe_cycle_for_mobile_position bool default false;
 
- alter table device
 
-     change mobilePositionSubmissionInterval mobile_position_submission_interval int default 5 not null;
 
- alter table device
 
-     change subscribeCycleForAlarm subscribe_cycle_for_alarm bool default false;
 
- alter table device
 
-     change hostAddress host_address varchar(50) null;
 
- alter table device
 
-     change ssrcCheck ssrc_check bool default false;
 
- alter table device
 
-     change geoCoordSys geo_coord_sys varchar(50) not null;
 
- alter table device
 
- drop column treeType;
 
- alter table device
 
-     change mediaServerId media_server_id varchar(50) default 'auto' null;
 
- alter table device
 
-     change sdpIp sdp_ip varchar(50) null;
 
- alter table device
 
-     change localIp local_ip varchar(50) null;
 
- alter table device
 
-     change asMessageChannel as_message_channel bool default false;
 
- alter table device
 
-     change keepaliveIntervalTime keepalive_interval_time int null;
 
- alter table device
 
-     change online on_line varchar(50) null;
 
- alter table device
 
-     add COLUMN switch_primary_sub_stream bool default false comment '开启主子码流切换的开关(0-不开启,1-开启)现在已知支持设备为 大华、TP——LINK全系设备';
 
- alter table device_alarm
 
-     change deviceId device_id varchar(50) not null;
 
- alter table device_alarm
 
-     change channelId channel_id varchar(50) not null;
 
- alter table device_alarm
 
-     change alarmPriority alarm_priority varchar(50) not null;
 
- alter table device_alarm
 
-     change alarmMethod alarm_method varchar(50) null;
 
- alter table device_alarm
 
-     change alarmTime alarm_time varchar(50) not null;
 
- alter table device_alarm
 
-     change alarmDescription alarm_description varchar(255) null;
 
- alter table device_alarm
 
-     change alarmType alarm_type varchar(50) null;
 
- alter table device_alarm
 
-     change createTime create_time varchar(50) null;
 
- alter table device_channel
 
-     change channelId channel_id varchar(50) not null;
 
- alter table device_channel
 
-     change civilCode civil_code varchar(50) null;
 
- alter table device_channel
 
-     change parentId parent_id varchar(50) null;
 
- alter table device_channel
 
-     change safetyWay safety_way int null;
 
- alter table device_channel
 
-     change registerWay register_way int null;
 
- alter table device_channel
 
-     change certNum cert_num varchar(50) null;
 
- alter table device_channel
 
-     change errCode err_code int null;
 
- alter table device_channel
 
-     change endTime end_time varchar(50) null;
 
- alter table device_channel
 
-     change ipAddress ip_address varchar(50) null;
 
- alter table device_channel
 
-     change PTZType ptz_type int null;
 
- alter table device_channel
 
-     change status status bool default false;
 
- alter table device_channel
 
-     change streamId stream_id varchar(255) null;
 
- alter table device_channel
 
-     change deviceId device_id varchar(50) not null;
 
- alter table device_channel
 
-     change hasAudio has_audio bool default false;
 
- alter table device_channel
 
-     change createTime create_time varchar(50) not null;
 
- alter table device_channel
 
-     change updateTime update_time varchar(50) not null;
 
- alter table device_channel
 
-     change subCount sub_count int default 0 null;
 
- alter table device_channel
 
-     change longitudeGcj02 longitude_gcj02 double null;
 
- alter table device_channel
 
-     change latitudeGcj02 latitude_gcj02 double null;
 
- alter table device_channel
 
-     change longitudeWgs84 longitude_wgs84 double null;
 
- alter table device_channel
 
-     change latitudeWgs84 latitude_wgs84 double null;
 
- alter table device_channel
 
-     change businessGroupId business_group_id varchar(50) null;
 
- alter table device_channel
 
-     change gpsTime gps_time varchar(50) null;
 
- alter table device_mobile_position
 
-     change deviceId device_id varchar(50) not null;
 
- alter table device_mobile_position
 
-     change channelId channel_id varchar(50) not null;
 
- alter table device_mobile_position
 
-     change deviceName device_name varchar(255) null;
 
- alter table device_mobile_position
 
-     change reportSource report_source varchar(50) null;
 
- alter table device_mobile_position
 
-     change longitudeGcj02 longitude_gcj02 double null;
 
- alter table device_mobile_position
 
-     change latitudeGcj02 latitude_gcj02 double null;
 
- alter table device_mobile_position
 
-     change longitudeWgs84 longitude_wgs84 double null;
 
- alter table device_mobile_position
 
-     change latitudeWgs84 latitude_wgs84 double null;
 
- alter table device_mobile_position
 
-     change createTime create_time varchar(50) null;
 
- alter table gb_stream
 
-     change gbStreamId gb_stream_id int auto_increment;
 
- alter table gb_stream
 
-     change gbId gb_id varchar(50) not null;
 
- alter table gb_stream
 
-     change streamType stream_type varchar(50) null;
 
- alter table gb_stream
 
-     change mediaServerId media_server_id varchar(50) null;
 
- alter table gb_stream
 
-     change createTime create_time varchar(50) null;
 
- alter table log
 
-     change createTime create_time varchar(50) not null;
 
- alter table media_server
 
-     change hookIp hook_ip varchar(50) not null;
 
- alter table media_server
 
-     add column send_rtp_port_range varchar(50) default null;
 
- alter table media_server
 
-     change sdpIp sdp_ip varchar(50) not null;
 
- alter table media_server
 
-     change streamIp stream_ip varchar(50) not null;
 
- alter table media_server
 
-     change httpPort http_port int not null;
 
- alter table media_server
 
-     change httpSSlPort http_ssl_port int not null;
 
- alter table media_server
 
-     change rtmpPort rtmp_port int not null;
 
- alter table media_server
 
-     change rtmpSSlPort rtmp_ssl_port int not null;
 
- alter table media_server
 
-     change rtpProxyPort rtp_proxy_port int not null;
 
- alter table media_server
 
-     change rtspPort rtsp_port int not null;
 
- alter table media_server
 
-     change rtspSSLPort rtsp_ssl_port int not null;
 
- alter table media_server
 
-     change autoConfig auto_config bool default true;
 
- alter table media_server
 
-     change rtpEnable rtp_enable bool default false;
 
- alter table media_server
 
-     change rtpPortRange rtp_port_range varchar(50) not null;
 
- alter table media_server
 
-     change recordAssistPort record_assist_port int not null;
 
- alter table media_server
 
-     change defaultServer default_server bool default false;
 
- alter table media_server
 
-     change createTime create_time varchar(50) not null;
 
- alter table media_server
 
-     change updateTime update_time varchar(50) not null;
 
- alter table media_server
 
-     change hookAliveInterval hook_alive_interval int not null;
 
- alter table parent_platform
 
-     change serverGBId server_gb_id varchar(50) not null;
 
- alter table parent_platform
 
-     change serverGBDomain server_gb_domain varchar(50) null;
 
- alter table parent_platform
 
-     change serverIP server_ip varchar(50) null;
 
- alter table parent_platform
 
-     change serverPort server_port int null;
 
- alter table parent_platform
 
-     change deviceGBId device_gb_id varchar(50) not null;
 
- alter table parent_platform
 
-     change deviceIp device_ip varchar(50) null;
 
- alter table parent_platform
 
-     change devicePort device_port varchar(50) null;
 
- alter table parent_platform
 
-     change keepTimeout keep_timeout varchar(50) null;
 
- alter table parent_platform
 
-     change characterSet character_set varchar(50) null;
 
- alter table parent_platform
 
-     change catalogId catalog_id varchar(50) not null;
 
- alter table parent_platform
 
-     change startOfflinePush start_offline_push bool default false;
 
- alter table parent_platform
 
-     change administrativeDivision administrative_division varchar(50) not null;
 
- alter table parent_platform
 
-     change catalogGroup catalog_group int default 1 null;
 
- alter table parent_platform
 
-     change createTime create_time varchar(50) null;
 
- alter table parent_platform
 
-     change updateTime update_time varchar(50) null;
 
- alter table parent_platform
 
- drop column treeType;
 
- alter table parent_platform
 
-     change asMessageChannel as_message_channel bool default false;
 
- alter table parent_platform
 
-     change enable enable bool default false;
 
- alter table parent_platform
 
-     change ptz ptz bool default false;
 
- alter table parent_platform
 
-     change rtcp rtcp bool default false;
 
- alter table parent_platform
 
-     change status status bool default false;
 
- alter table parent_platform
 
-     change status status bool default false;
 
- alter table platform_catalog
 
-     change platformId platform_id varchar(50) not null;
 
- alter table platform_catalog
 
-     change parentId parent_id varchar(50) null;
 
- alter table platform_catalog
 
-     change civilCode civil_code varchar(50) null;
 
- alter table platform_catalog
 
-     change businessGroupId business_group_id varchar(50) null;
 
- alter table platform_gb_channel
 
-     change platformId platform_id varchar(50) not null;
 
- alter table platform_gb_channel
 
-     change catalogId catalog_id varchar(50) not null;
 
- alter table platform_gb_channel
 
-     change deviceChannelId device_channel_id int not null;
 
- alter table platform_gb_stream
 
-     change platformId platform_id varchar(50) not null;
 
- alter table platform_gb_stream
 
-     change catalogId catalog_id varchar(50) not null;
 
- alter table platform_gb_stream
 
-     change gbStreamId gb_stream_id int not null;
 
- alter table stream_proxy
 
-     change mediaServerId media_server_id varchar(50) null;
 
- alter table stream_proxy
 
-     change createTime create_time varchar(50) not null;
 
- alter table stream_proxy
 
-     change updateTime update_time varchar(50) null;
 
- alter table stream_proxy
 
-     change enable_remove_none_reader enable_remove_none_reader bool default false;
 
- alter table stream_proxy
 
-     change enable_disable_none_reader enable_disable_none_reader bool default false;
 
- alter table stream_proxy
 
-     change enable_audio enable_audio bool default false;
 
- alter table stream_proxy
 
-     change enable_mp4 enable_mp4 bool default false;
 
- alter table stream_proxy
 
-     change enable enable bool default false;
 
- alter table stream_push
 
-     change totalReaderCount total_reader_count varchar(50) null;
 
- alter table stream_push
 
-     change originType origin_type int null;
 
- alter table stream_push
 
-     change originTypeStr origin_type_str varchar(50) null;
 
- alter table stream_push
 
-     change createTime create_time varchar(50) null;
 
- alter table stream_push
 
-     change aliveSecond alive_second int null;
 
- alter table stream_push
 
-     change mediaServerId media_server_id varchar(50) null;
 
- alter table stream_push
 
-     change status status bool default false;
 
- alter table stream_push
 
-     change pushTime push_time varchar(50) null;
 
- alter table stream_push
 
-     change updateTime update_time varchar(50) null;
 
- alter table stream_push
 
-     change pushIng push_ing bool default false;
 
- alter table stream_push
 
-     change status status bool default false;
 
- alter table stream_push
 
-     change self self bool default false;
 
- alter table stream_push
 
- drop column serverId;
 
- alter table user
 
-     change roleId role_id int not null;
 
- alter table user
 
-     change createTime create_time varchar(50) not null;
 
- alter table user
 
-     change updateTime update_time varchar(50) not null;
 
- alter table user
 
-     change pushKey push_key varchar(50) null;
 
- alter table user_role
 
-     change createTime create_time varchar(50) not null;
 
- alter table user_role
 
-     change updateTime update_time varchar(50) not null;
 
- rename table device to wvp_device;
 
- rename table device_alarm to wvp_device_alarm;
 
- rename table device_channel to wvp_device_channel;
 
- rename table device_mobile_position to wvp_device_mobile_position;
 
- rename table gb_stream to wvp_gb_stream;
 
- rename table log to wvp_log;
 
- rename table media_server to wvp_media_server;
 
- rename table parent_platform to wvp_platform;
 
- rename table platform_catalog to wvp_platform_catalog;
 
- rename table platform_gb_channel to wvp_platform_gb_channel;
 
- rename table platform_gb_stream to wvp_platform_gb_stream;
 
- rename table stream_proxy to wvp_stream_proxy;
 
- rename table stream_push to wvp_stream_push;
 
- rename table user to wvp_user;
 
- rename table user_role to wvp_user_role;
 
- alter table wvp_device add column broadcast_push_after_ack bool default false;
 
- alter table wvp_device_channel add column custom_name varchar(255) null ;
 
- alter table wvp_device_channel add column custom_longitude double null ;
 
- alter table wvp_device_channel add column custom_latitude double null ;
 
- alter table wvp_device_channel add column custom_ptz_type int null ;
 
- create table wvp_resources_tree (
 
-                                     id serial primary key ,
 
-                                     is_catalog bool default true,
 
-                                     device_channel_id integer ,
 
-                                     gb_stream_id integer,
 
-                                     name character varying(255),
 
-                                     parentId integer,
 
-                                     path character varying(255)
 
- );
 
- alter table wvp_platform
 
-     add auto_push_channel bool default false;
 
- alter table wvp_stream_proxy
 
-     add stream_key character varying(255);
 
- create table wvp_cloud_record (
 
-       id serial primary key,
 
-       app character varying(255),
 
-       stream character varying(255),
 
-       call_id character varying(255),
 
-       start_time bigint,
 
-       end_time bigint,
 
-       media_server_id character varying(50),
 
-       file_name character varying(255),
 
-       folder character varying(255),
 
-       file_path character varying(255),
 
-       collect bool default false,
 
-       file_size bigint,
 
-       time_len bigint,
 
-       constraint uk_stream_push_app_stream_path unique (app, stream, file_path)
 
- );
 
- alter table wvp_media_server
 
-     add record_path character varying(255);
 
- alter table wvp_media_server
 
-     add record_day integer default 7;
 
- alter table wvp_stream_push
 
-     add server_id character varying(50);
 
 
  |