Skip to content

Commit a654915

Browse files
committed
fix: Modify database initialization data
2 parents 76a672d + 0b9ce6c commit a654915

File tree

10 files changed

+357
-362
lines changed

10 files changed

+357
-362
lines changed

app/src/main/resources/application-local.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ spring:
88
password:
99
sql:
1010
init:
11-
schema-locations: classpath:sql/h2/create_all_tables_ddl_v1.h2.sql
12-
data-locations: classpath:sql/h2/init_data_for_test.sql
11+
schema-locations: classpath:sql/h2/create_all_tables_ddl_v1.0.0.h2.sql
12+
data-locations: classpath:sql/h2/init_data_for_test_v1.0.0.sql
1313

1414
springdoc:
1515
api-docs:

app/src/main/resources/sql/h2/create_all_tables_ddl_v1.h2.sql renamed to app/src/main/resources/sql/h2/create_all_tables_ddl_v1.0.0.h2.sql

File renamed without changes.

app/src/main/resources/sql/h2/init_data_for_test.sql

Lines changed: 0 additions & 178 deletions
This file was deleted.

app/src/main/resources/sql/h2/init_data_for_test_v1.0.0.sql

Lines changed: 175 additions & 0 deletions
Large diffs are not rendered by default.

app/src/main/resources/sql/h2/update_all_tables_ddl.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ ALTER TABLE t_platform_history MODIFY tenant_id varchar(60) NULL;
2828
ALTER TABLE t_task_record MODIFY tenant_id varchar(60) NULL;
2929
ALTER TABLE t_user MODIFY tenant_id varchar(60) NULL;
3030

31-
ALTER TABLE t_component_library ADD app_id int NULL;
31+
ALTER TABLE t_component_library ADD app_id int NULL;
32+

app/src/main/resources/sql/mysql/create_all_tables_ddl_v1.mysql.sql renamed to app/src/main/resources/sql/mysql/create_all_tables_ddl_v1.0.0.mysql.sql

File renamed without changes.

app/src/main/resources/sql/mysql/init_data_for_test.sql

Lines changed: 0 additions & 180 deletions
This file was deleted.

app/src/main/resources/sql/mysql/init_data_for_test_v1.0.0.sql

Lines changed: 175 additions & 0 deletions
Large diffs are not rendered by default.

app/src/main/resources/sql/mysql/update_all_tables_ddl.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ ALTER TABLE t_platform_history MODIFY tenant_id varchar(60) NULL;
2828
ALTER TABLE t_task_record MODIFY tenant_id varchar(60) NULL;
2929
ALTER TABLE t_user MODIFY tenant_id varchar(60) NULL;
3030

31-
ALTER TABLE t_component_library ADD app_id int NULL;
31+
ALTER TABLE t_component_library ADD app_id int NULL;
32+

base/src/main/java/com/tinyengine/it/service/app/impl/PageServiceImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ public class PageServiceImpl implements PageService {
150150
*/
151151
@Autowired
152152
private ApplicationEventPublisher eventPublisher;
153+
153154
/**
154155
* 通过appId查询page所有数据实现方法
155156
*

0 commit comments

Comments
 (0)