Browse Source

fix:合并1.0

liaoyitao 3 months ago
parent
commit
0c1c7031a3

+ 1 - 1
src/main/java/com/lqkj/link/module/zone/service/ZoneInfoService.java

@@ -384,7 +384,7 @@ public class ZoneInfoService {
384 384
 
385 385
         ZoneInfo zoneInfo = new ZoneInfo(null, userInfo.getUserId(), name, template == null ? new JSONObject(JSON.parseObject("{\"rotation\":{\"x\":0,\"y\":0.4383658766746521,\"z\":0,\"w\":0.8987966179847717},\"translation\":{\"x\":-820.947265625,\"y\":0,\"z\":955.6719360351563},\"scale3D\":{\"x\":1,\"y\":1,\"z\":1}}")) : template.getInitLocation(),
386 386
                 template == null ? null : template.getThumbnail(), 0, new Date(), 0, 0,
387
-                null, null, 0,null);
387
+                null, null, 0,0, null);
388 388
         ZoneInfo newInfo = zoneInfoRepository.save(zoneInfo);
389 389
         GeometryFactory geometryFactory = new GeometryFactory();
390 390
         if (templateId != null) {

src/main/resources/db/migration/V8__2.0.5.sql → src/main/resources/db/migration/V10__2.0.5.sql


+ 1 - 24
src/main/resources/db/migration/V3__2.0.0.sql

@@ -1,25 +1,3 @@
1
-<<<<<<< HEAD
2
-alter table zone_info add column like_count INT4 default 0;
3
-comment on column zone_info.like_count is
4
-'点赞数: like_count';
5
-create table Likes (
6
-    id SERIAL not null,
7
-    user_id INT4 not null,
8
-    zone_id INT4 not null,
9
-    create_time TIMESTAMP default current_timestamp,
10
-    constraint PK_LIKES primary key (id)
11
-);
12
-comment on table Likes is
13
-'点赞表: Likes';
14
-comment on column Likes.id is
15
-'id: id';
16
-comment on column Likes.user_id is
17
-'用户id: user_id';
18
-comment on column Likes.zone_id is
19
-'点赞的作品id: zone_id';
20
-comment on column Likes.create_time is
21
-'点赞时间: create_time'
22
-=======
23 1
 alter table geom_info
24 2
     add column if not exists pics varchar(1024),
25 3
     add column if not exists video_url varchar(1024),
@@ -37,5 +15,4 @@ comment on column geom_info.navigation_end is '导航终点:navigation_end';
37 15
 
38 16
 
39 17
 ALTER TABLE model_info
40
-ALTER COLUMN texture_path TYPE VARCHAR(5000);
41
->>>>>>> 2ea1012e32fc18bb55a79461c9862f040d41294a
18
+ALTER COLUMN texture_path TYPE VARCHAR(5000);

+ 0 - 7
src/main/resources/db/migration/V4__2.0.1.sql

@@ -1,7 +0,0 @@
1
-alter table share_info add column shared_user_id INT4;
2
-comment on column share_info.shared_user_id is
3
-'被分享人id: shared_user_id';
4
-
5
-alter table notice_info add column zone_id INT4;
6
-comment on column notice_info.zone_id is
7
-'作品id: zone_id';

+ 28 - 0
src/main/resources/db/migration/V6__2.0.1.sql

@@ -0,0 +1,28 @@
1
+alter table zone_info add column like_count INT4 default 0;
2
+comment on column zone_info.like_count is
3
+'点赞数: like_count';
4
+create table Likes (
5
+                       id SERIAL not null,
6
+                       user_id INT4 not null,
7
+                       zone_id INT4 not null,
8
+                       create_time TIMESTAMP default current_timestamp,
9
+                       constraint PK_LIKES primary key (id)
10
+);
11
+comment on table Likes is
12
+'点赞表: Likes';
13
+comment on column Likes.id is
14
+'id: id';
15
+comment on column Likes.user_id is
16
+'用户id: user_id';
17
+comment on column Likes.zone_id is
18
+'点赞的作品id: zone_id';
19
+comment on column Likes.create_time is
20
+'点赞时间: create_time';
21
+
22
+alter table share_info add column shared_user_id INT4;
23
+comment on column share_info.shared_user_id is
24
+'被分享人id: shared_user_id';
25
+
26
+alter table notice_info add column zone_id INT4;
27
+comment on column notice_info.zone_id is
28
+'作品id: zone_id';

src/main/resources/db/migration/V5__2.0.2.sql → src/main/resources/db/migration/V7__2.0.2.sql


src/main/resources/db/migration/V6__2.0.3.sql → src/main/resources/db/migration/V8__2.0.3.sql


src/main/resources/db/migration/V7__2.0.4.sql → src/main/resources/db/migration/V9__2.0.4.sql