liaoyitao 1 month ago
parent
commit
2ea1012e32

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

@@ -726,21 +726,3 @@ 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);

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

@@ -0,0 +1,18 @@
1
+alter table geom_info
2
+    add column if not exists pics varchar(1024),
3
+    add column if not exists video_url varchar(1024),
4
+    add column if not exists audio_url varchar(1024),
5
+    add column if not exists brief text,
6
+    add column if not exists navigation bool default false,
7
+    add column if not exists navigation_end varchar(100);
8
+
9
+comment on column geom_info.pics is '图片地址:pics';
10
+comment on column geom_info.video_url is '视频文件地址:video_url';
11
+comment on column geom_info.audio_url is '音频文件地址:audio_url';
12
+comment on column geom_info.brief is '简介:brief';
13
+comment on column geom_info.navigation is '是否导航:navigation';
14
+comment on column geom_info.navigation_end is '导航终点:navigation_end';
15
+
16
+
17
+ALTER TABLE model_info
18
+ALTER COLUMN texture_path TYPE VARCHAR(5000);