Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改sql中service_time字段的默认值为 NOW() 之前默认值在IDEA中执行报错 #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion script/cachecloud.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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启用',
Expand Down