修复使用PG数据库时,站内信表、菜单权限表字段类型不一致问题
在`NotifyMessageDO`实体类中`read_status`是布尔类型,因此数据库中也要定义为 `bool` 类型,否则查询报错。菜单权限表`system_menu`表同理。
This commit is contained in:
parent
f59119bf6e
commit
143bff909a
@ -2607,7 +2607,7 @@ CREATE TABLE "system_menu" (
|
|||||||
"update_time" timestamp(6) NOT NULL,
|
"update_time" timestamp(6) NOT NULL,
|
||||||
"deleted" int2 NOT NULL DEFAULT 0,
|
"deleted" int2 NOT NULL DEFAULT 0,
|
||||||
"component_name" varchar(255) COLLATE "pg_catalog"."default",
|
"component_name" varchar(255) COLLATE "pg_catalog"."default",
|
||||||
"always_show" char(1) COLLATE "pg_catalog"."default"
|
"always_show" bool NOT NULL DEFAULT false
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
COMMENT ON COLUMN "system_menu"."id" IS '菜单ID';
|
COMMENT ON COLUMN "system_menu"."id" IS '菜单ID';
|
||||||
@ -4239,7 +4239,7 @@ CREATE TABLE "system_notify_message" (
|
|||||||
"template_content" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
|
"template_content" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
|
||||||
"template_type" int4 NOT NULL,
|
"template_type" int4 NOT NULL,
|
||||||
"template_params" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
|
"template_params" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
|
||||||
"read_status" varchar(1) COLLATE "pg_catalog"."default" NOT NULL,
|
"read_status" bool NOT NULL DEFAULT false,
|
||||||
"read_time" timestamp(6),
|
"read_time" timestamp(6),
|
||||||
"creator" varchar(64) COLLATE "pg_catalog"."default",
|
"creator" varchar(64) COLLATE "pg_catalog"."default",
|
||||||
"create_time" timestamp(6) NOT NULL,
|
"create_time" timestamp(6) NOT NULL,
|
||||||
|
Loading…
Reference in New Issue
Block a user