Commit e11671a1fbbf2ba7cdc0ebe0915b7cc8168afb3f

Authored by 648540858
1 parent 16c056e3

优化sql

sql/2.6.9更新.sql renamed to sql/2.6.9更新-mysql.sql
1 alter table wvp_device_channel 1 alter table wvp_device_channel
2 - change stream_id stream_id varying(255) 2 + change stream_id stream_id character varying(255);
3 3
4 alter table wvp_platform 4 alter table wvp_platform
5 - add auto_push_channel bool default false 5 + add auto_push_channel bool default false;
6 6
7 alter table wvp_stream_proxy 7 alter table wvp_stream_proxy
8 - add stream_key character varying(255) 8 + add stream_key character varying(255);
9 9
10 create table wvp_cloud_record ( 10 create table wvp_cloud_record (
11 id serial primary key, 11 id serial primary key,
12 app character varying(255), 12 app character varying(255),
13 stream character varying(255), 13 stream character varying(255),
14 call_id character varying(255), 14 call_id character varying(255),
15 - start_time integer,  
16 - end_time integer, 15 + start_time bigint,
  16 + end_time bigint,
17 media_server_id character varying(50), 17 media_server_id character varying(50),
18 file_name character varying(255), 18 file_name character varying(255),
19 folder character varying(255), 19 folder character varying(255),
20 file_path character varying(255), 20 file_path character varying(255),
21 collect bool default false, 21 collect bool default false,
22 reserve bool default false, 22 reserve bool default false,
23 - file_size integer,  
24 - time_len integer, 23 + file_size bigint,
  24 + time_len bigint,
25 constraint uk_stream_push_app_stream_path unique (app, stream, file_path) 25 constraint uk_stream_push_app_stream_path unique (app, stream, file_path)
26 ); 26 );
27 27
sql/2.6.9更新-postgresql-kingbase.sql 0 → 100644
  1 +alter table wvp_device_channel
  2 + rename "stream_id" to stream_id ;
  3 +
  4 +alter table wvp_platform
  5 + add auto_push_channel bool default false;
  6 +
  7 +alter table wvp_stream_proxy
  8 + add stream_key character varying(255);
  9 +
  10 +create table wvp_cloud_record (
  11 + id serial primary key,
  12 + app character varying(255),
  13 + stream character varying(255),
  14 + call_id character varying(255),
  15 + start_time int8,
  16 + end_time int8,
  17 + media_server_id character varying(50),
  18 + file_name character varying(255),
  19 + folder character varying(255),
  20 + file_path character varying(255),
  21 + collect bool default false,
  22 + reserve bool default false,
  23 + file_size int8,
  24 + time_len int8,
  25 + constraint uk_stream_push_app_stream_path unique (app, stream, file_path)
  26 +);
  27 +
  28 +alter table wvp_media_server
  29 + add record_path character varying(255);
  30 +
  31 +alter table wvp_media_server
  32 + add record_date integer default 7;
  33 +
  34 +