From e11671a1fbbf2ba7cdc0ebe0915b7cc8168afb3f Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: Tue, 24 Oct 2023 18:20:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/2.6.9æ›´æ–°-mysql.sql | 34 +++++++++++++++++++ ...–°.sql => 2.6.9æ›´æ–°-postgresql-kingbase.sql} | 14 ++++---- 2 files changed, 41 insertions(+), 7 deletions(-) create mode 100644 sql/2.6.9æ›´æ–°-mysql.sql rename sql/{2.6.9æ›´æ–°.sql => 2.6.9æ›´æ–°-postgresql-kingbase.sql} (75%) diff --git a/sql/2.6.9æ›´æ–°-mysql.sql b/sql/2.6.9æ›´æ–°-mysql.sql new file mode 100644 index 00000000..15b9e27d --- /dev/null +++ b/sql/2.6.9æ›´æ–°-mysql.sql @@ -0,0 +1,34 @@ +alter table wvp_device_channel + change stream_id stream_id 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, + reserve 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_date integer default 7; + + diff --git a/sql/2.6.9æ›´æ–°.sql b/sql/2.6.9æ›´æ–°-postgresql-kingbase.sql similarity index 75% rename from sql/2.6.9æ›´æ–°.sql rename to sql/2.6.9æ›´æ–°-postgresql-kingbase.sql index 6532d32b..9681052d 100644 --- a/sql/2.6.9æ›´æ–°.sql +++ b/sql/2.6.9æ›´æ–°-postgresql-kingbase.sql @@ -1,27 +1,27 @@ alter table wvp_device_channel - change stream_id stream_id varying(255) + rename "stream_id" to stream_id ; alter table wvp_platform - add auto_push_channel bool default false + add auto_push_channel bool default false; alter table wvp_stream_proxy - add stream_key character varying(255) + 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 integer, - end_time integer, + start_time int8, + end_time int8, media_server_id character varying(50), file_name character varying(255), folder character varying(255), file_path character varying(255), collect bool default false, reserve bool default false, - file_size integer, - time_len integer, + file_size int8, + time_len int8, constraint uk_stream_push_app_stream_path unique (app, stream, file_path) );