如何在较低版本的SQL上修复Magento时间戳记问题?
我已按照
进行了以下修复`modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'User Modified Time'
到
`modified` timestamp NOT NULL DEFAULT 0 COMMENT 'User Modified Time'
现在想知道如何解决
1293-错误的表定义; DEFAULT或ON UPDATE子句中只能有一个带有CURRENT_TIMESTAMP的TIMESTAMP列
DROP TABLE IF EXISTS `integration`;
CREATE TABLE IF NOT EXISTS `integration` (
`integration_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Integration ID',
`name` varchar(255) NOT NULL COMMENT 'Integration name is displayed in the admin interface',
`email` varchar(255) NOT NULL COMMENT 'Email address of the contact person',
`endpoint` varchar(255) DEFAULT NULL COMMENT 'Endpoint for posting consumer credentials',
`status` smallint(5) UNSIGNED NOT NULL COMMENT 'Integration status',
`consumer_id` int(10) UNSIGNED DEFAULT NULL COMMENT 'Oauth consumer',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Creation Time',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP COMMENT 'Update Time',
`setup_type` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Integration type - manual or config file',
`identity_link_url` varchar(255) DEFAULT NULL COMMENT 'Identity linking Url',
PRIMARY KEY (`integration_id`),
UNIQUE KEY `INTEGRATION_NAME` (`name`),
UNIQUE KEY `INTEGRATION_CONSUMER_ID` (`consumer_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='integration';
updated_at
时间戳记非空默认值'0000-00-00 00:00:00'ON UPDATE CURRENT_TIMESTAMP COMMENT'Update Time',