From 49021c443f9eae2ac55a94410cfa71e56fb98a81 Mon Sep 17 00:00:00 2001 From: xiaoQQya Date: Mon, 25 May 2026 15:54:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20postgresql=20?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E8=AF=AD=E6=B3=95=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2.7.4/初始化-postgresql-kingbase-2.7.4.sql | 22 +++++++++---------- .../2.7.4/更新-postgresql-kingbase-2.7.4.sql | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/数据库/2.7.4/初始化-postgresql-kingbase-2.7.4.sql b/数据库/2.7.4/初始化-postgresql-kingbase-2.7.4.sql index eba8e3b10..909e382f7 100644 --- a/数据库/2.7.4/初始化-postgresql-kingbase-2.7.4.sql +++ b/数据库/2.7.4/初始化-postgresql-kingbase-2.7.4.sql @@ -107,7 +107,7 @@ create table IF NOT EXISTS wvp_mobile_position ( id serial primary key, channel_id character varying(50) not null, - timestamp int8 varying(50), + timestamp int8, longitude double precision, latitude double precision, altitude double precision, @@ -115,16 +115,16 @@ create table IF NOT EXISTS wvp_mobile_position direction double precision, create_time character varying(50) ); -COMMENT ON TABLE wvp_device_mobile_position IS '存储移动位置订阅上报的数据'; -COMMENT ON COLUMN wvp_device_mobile_position.id IS '主键ID'; -COMMENT ON COLUMN wvp_device_mobile_position.channel_id IS '通道ID'; -COMMENT ON COLUMN wvp_device_mobile_position.timestamp IS '上报时间'; -COMMENT ON COLUMN wvp_device_mobile_position.longitude IS '经度'; -COMMENT ON COLUMN wvp_device_mobile_position.latitude IS '纬度'; -COMMENT ON COLUMN wvp_device_mobile_position.altitude IS '海拔'; -COMMENT ON COLUMN wvp_device_mobile_position.speed IS '速度'; -COMMENT ON COLUMN wvp_device_mobile_position.direction IS '方向角'; -COMMENT ON COLUMN wvp_device_mobile_position.create_time IS '入库时间'; +COMMENT ON TABLE wvp_mobile_position IS '存储移动位置订阅上报的数据'; +COMMENT ON COLUMN wvp_mobile_position.id IS '主键ID'; +COMMENT ON COLUMN wvp_mobile_position.channel_id IS '通道ID'; +COMMENT ON COLUMN wvp_mobile_position.timestamp IS '上报时间'; +COMMENT ON COLUMN wvp_mobile_position.longitude IS '经度'; +COMMENT ON COLUMN wvp_mobile_position.latitude IS '纬度'; +COMMENT ON COLUMN wvp_mobile_position.altitude IS '海拔'; +COMMENT ON COLUMN wvp_mobile_position.speed IS '速度'; +COMMENT ON COLUMN wvp_mobile_position.direction IS '方向角'; +COMMENT ON COLUMN wvp_mobile_position.create_time IS '入库时间'; drop table IF EXISTS wvp_device_channel; diff --git a/数据库/2.7.4/更新-postgresql-kingbase-2.7.4.sql b/数据库/2.7.4/更新-postgresql-kingbase-2.7.4.sql index e99a47039..5122517d2 100644 --- a/数据库/2.7.4/更新-postgresql-kingbase-2.7.4.sql +++ b/数据库/2.7.4/更新-postgresql-kingbase-2.7.4.sql @@ -41,7 +41,7 @@ ALTER table wvp_device_channel ADD COLUMN IF NOT EXISTS map_level integer defaul ALTER table wvp_common_group ADD COLUMN IF NOT EXISTS alias varchar(255) default null; ALTER table wvp_stream_proxy DROP COLUMN IF EXISTS enable_remove_none_reader; -drop index uk_media_server_unique_ip_http_port on wvp_media_server; +DROP INDEX IF EXISTS uk_media_server_unique_ip_http_port; ALTER table wvp_device DROP COLUMN IF EXISTS register_time; ALTER table wvp_device DROP COLUMN IF EXISTS keepalive_time; @@ -56,7 +56,7 @@ create table IF NOT EXISTS wvp_alarm ( latitude double precision, alarm_type integer, alarm_time bigint -) +); COMMENT ON COLUMN wvp_alarm.id IS '主键ID'; COMMENT ON COLUMN wvp_alarm.channel_id IS '关联通道的数据库id'; COMMENT ON COLUMN wvp_alarm.description IS '报警描述';