Skip to content

Commit bbdcf1a

Browse files
authored
fix(app): 修复启动时h2脚本与local配置问题 (opentiny#176)
1 parent 51cb739 commit bbdcf1a

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,11 @@ logging:
3939
pattern:
4040
file: "%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n"
4141
file:
42-
name: /logs
42+
name: /logs
43+
44+
cors:
45+
allowed-origins: "http://127.0.0.1:8090"
46+
allowed-methods: "GET,POST,PUT,DELETE,OPTIONS"
47+
allowed-headers: "Accept,Referer,User-Agent,x-lowcode-mode,x-lowcode-org,Content-Type,Authorization"
48+
exposed-headers: "Authorization"
49+
allow-credentials: true

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ create table t_page (
316316
page_content longtext comment '页面内容',
317317
is_body tinyint(1) comment '根元素是否是body',
318318
parent_id int not null comment '父文件夹id',
319-
"group" varchar(255) comment '分组',
319+
`group` varchar(255) comment '分组',
320320
depth int comment '页面/文件夹深度,更改层级时服务端校验用(校验可有可无)',
321321
is_page tinyint(1) not null comment '是否为页面:分为页面和文件夹',
322322
occupier_by varchar(60) comment '当前检出者id',
@@ -362,7 +362,7 @@ create table t_page_history (
362362
created_time timestamp not null default current_timestamp comment '创建时间',
363363
last_updated_by varchar(60) not null comment '最后修改人',
364364
last_updated_time timestamp not null default current_timestamp comment '更新时间',
365-
primary key (id),
365+
primary key (id)
366366
) comment = '页面历史表';
367367

368368
drop table if exists t_page_template;

0 commit comments

Comments
 (0)