Skip to content

Commit

Permalink
事件表增加异常信息字段。
Browse files Browse the repository at this point in the history
  • Loading branch information
binking338 committed Aug 13, 2024
1 parent 3828872 commit 1bb32d8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ CREATE TABLE `__event` (
`event_type` varchar(255) NOT NULL DEFAULT '' COMMENT '事件类型',
`data` text COMMENT '事件数据',
`data_type` varchar(255) NOT NULL DEFAULT '' COMMENT '事件数据类型',
`exception` text COMMENT '事件发送异常',
`expire_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '过期时间',
`create_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`event_state` int(11) NOT NULL DEFAULT '0' COMMENT '分发状态 @E=0:INIT:初始化|1:DELIVERED:已发送|-1:DELIVERING:发送中|-2:CANCEL:|-3:EXPIRED:|-4:EXHAUSTED:超过重试次数|-9:EXCEPTION:异常; @T=EventState;',
Expand Down Expand Up @@ -37,6 +38,7 @@ CREATE TABLE `__archived_event` (
`event_type` varchar(255) NOT NULL DEFAULT '' COMMENT '事件类型',
`data` text COMMENT '事件数据',
`data_type` varchar(255) NOT NULL DEFAULT '' COMMENT '事件数据类型',
`exception` text COMMENT '事件发送异常',
`expire_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '过期时间',
`create_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`event_state` int(11) NOT NULL DEFAULT '0' COMMENT '分发状态 @E=0:INIT:初始化|1:DELIVERED:已发送|-1:DELIVERING:发送中|-2:CANCEL:|-3:EXPIRED:|-4:EXHAUSTED:超过重试次数|-9:EXCEPTION:异常; @T=EventState;',
Expand Down

0 comments on commit 1bb32d8

Please sign in to comment.