Browse Source

fix: 增加geom字段

liaoyitao 2 months ago
parent
commit
4d7fe2871d
1 changed files with 18 additions and 0 deletions
  1. 18 0
      src/main/resources/db/migration/V2__1.0.0.sql

+ 18 - 0
src/main/resources/db/migration/V2__1.0.0.sql

@@ -726,3 +726,21 @@ alter table zone_info
726 726
         references user_info (user_id)
727 727
         on delete cascade on update cascade;
728 728
 
729
+alter table geom_info
730
+    add column if not exists pics varchar(1024),
731
+    add column if not exists video_url varchar(1024),
732
+    add column if not exists audio_url varchar(1024),
733
+    add column if not exists brief text,
734
+    add column if not exists navigation bool default false,
735
+    add column if not exists navigation_end varchar(100);
736
+
737
+comment on column geom_info.pics is '图片地址:pics';
738
+comment on column geom_info.video_url is '视频文件地址:video_url';
739
+comment on column geom_info.audio_url is '音频文件地址:audio_url';
740
+comment on column geom_info.brief is '简介:brief';
741
+comment on column geom_info.navigation is '是否导航:navigation';
742
+comment on column geom_info.navigation_end is '导航终点:navigation_end';
743
+
744
+
745
+ALTER TABLE model_info
746
+ALTER COLUMN texture_path TYPE VARCHAR(5000);