From 20e6d215541075cefce204bfa1a286ecaf7709b1 Mon Sep 17 00:00:00 2001 From: zhanghanlin Date: Sat, 27 Aug 2016 13:50:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9sql=E4=B8=ADservice=5Ftime?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E7=9A=84=E9=BB=98=E8=AE=A4=E5=80=BC=E4=B8=BA?= =?UTF-8?q?=20NOW()=20=E4=B9=8B=E5=89=8D=E9=BB=98=E8=AE=A4=E5=80=BC?= =?UTF-8?q?=E5=9C=A8IDEA=E4=B8=AD=E6=89=A7=E8=A1=8C=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/cachecloud.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/cachecloud.sql b/script/cachecloud.sql index 97ec9a05..ba9f4f9a 100644 --- a/script/cachecloud.sql +++ b/script/cachecloud.sql @@ -741,7 +741,7 @@ CREATE TABLE `machine_info` ( `cpu` mediumint(24) unsigned NOT NULL COMMENT 'cpu数量', `virtual` tinyint(8) unsigned NOT NULL DEFAULT '1' COMMENT '是否虚拟,0表示否,1表示是', `real_ip` varchar(16) COLLATE utf8_bin NOT NULL COMMENT '宿主机ip', - `service_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '上线时间', + `service_time` timestamp NOT NULL DEFAULT NOW() COMMENT '上线时间', `fault_count` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '故障次数', `modify_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', `warn` tinyint(255) unsigned NOT NULL DEFAULT '1' COMMENT '是否启用报警,0不启用,1启用',