use varchar(255) not varchar(256)
This commit is contained in:
parent
e32178371d
commit
29a0dbe193
|
@ -91,8 +91,8 @@ create table `tmp_chart` (
|
|||
create table `event_cur` (
|
||||
`id` bigint(20) unsigned not null AUTO_INCREMENT comment 'id',
|
||||
`sid` bigint(20) unsigned not null default 0 comment 'sid',
|
||||
`sname` varchar(256) not null default '' comment 'name, 报警通知名称',
|
||||
`node_path` varchar(256) not null default '' comment 'node path',
|
||||
`sname` varchar(255) not null default '' comment 'name, 报警通知名称',
|
||||
`node_path` varchar(255) not null default '' comment 'node path',
|
||||
`nid` int unsigned not null default '0' comment 'node id',
|
||||
`endpoint` varchar(255) not null default '' comment 'endpoint',
|
||||
`endpoint_alias` varchar(255) not null default '' comment 'endpoint alias',
|
||||
|
@ -103,7 +103,7 @@ create table `event_cur` (
|
|||
`detail` text comment 'counter points pred_points 详情',
|
||||
`hashid` varchar(128) not null default '' comment 'sid+counter hash',
|
||||
`etime` bigint(20) not null default 0 comment 'event ts',
|
||||
`value` varchar(256) not null default '' comment '当前值',
|
||||
`value` varchar(255) not null default '' comment '当前值',
|
||||
`users` varchar(512) not null default '[]' comment 'notify users',
|
||||
`groups` varchar(512) not null default '[]' comment 'notify groups',
|
||||
`info` varchar(512) not null default '' comment 'strategy info',
|
||||
|
@ -122,8 +122,8 @@ create table `event_cur` (
|
|||
create table `event` (
|
||||
`id` bigint(20) unsigned not null AUTO_INCREMENT comment 'id',
|
||||
`sid` bigint(20) unsigned not null default 0 comment 'sid',
|
||||
`sname` varchar(256) not null default '' comment 'name, 报警通知名称',
|
||||
`node_path` varchar(256) not null default '' comment 'node path',
|
||||
`sname` varchar(255) not null default '' comment 'name, 报警通知名称',
|
||||
`node_path` varchar(255) not null default '' comment 'node path',
|
||||
`nid` int unsigned not null default '0' comment 'node id',
|
||||
`endpoint` varchar(255) not null default '' comment 'endpoint',
|
||||
`endpoint_alias` varchar(255) not null default '' comment 'endpoint alias',
|
||||
|
@ -134,7 +134,7 @@ create table `event` (
|
|||
`detail` text comment 'counter points pred_points 详情',
|
||||
`hashid` varchar(128) not null default '' comment 'sid+counter hash',
|
||||
`etime` bigint(20) not null default 0 comment 'event ts',
|
||||
`value` varchar(256) not null default '' comment '当前值',
|
||||
`value` varchar(255) not null default '' comment '当前值',
|
||||
`users` varchar(512) not null default '[]' comment 'notify users',
|
||||
`groups` varchar(512) not null default '[]' comment 'notify groups',
|
||||
`info` varchar(512) not null default '' comment 'strategy info',
|
||||
|
@ -167,8 +167,8 @@ CREATE TABLE `stra` (
|
|||
`converge` varchar(45) NOT NULL DEFAULT '' COMMENT 'n秒最多报m次警',
|
||||
`recovery_notify` int(1) NOT NULL DEFAULT 1 COMMENT '1 发送恢复通知 0不发送恢复通知',
|
||||
`priority` int(1) NOT NULL DEFAULT 3 COMMENT '告警等级',
|
||||
`notify_group` varchar(256) NOT NULL DEFAULT '' COMMENT '告警通知组',
|
||||
`notify_user` varchar(256) NOT NULL DEFAULT '' COMMENT '告警通知人',
|
||||
`notify_group` varchar(255) NOT NULL DEFAULT '' COMMENT '告警通知组',
|
||||
`notify_user` varchar(255) NOT NULL DEFAULT '' COMMENT '告警通知人',
|
||||
`callback` varchar(1024) NOT NULL DEFAULT '' COMMENT 'callback url',
|
||||
`creator` varchar(64) NOT NULL COMMENT '创建者',
|
||||
`created` timestamp NOT NULL DEFAULT '1971-01-01 00:00:00' COMMENT 'created',
|
||||
|
|
Loading…
Reference in New Issue