varka
September 23rd, 2015, 11:36
سلام دوستان یه مشکل موقع ایمپورت کردن دیتابیس داخل دایرکت ادمین به وجود اومده نمیذاره ایمپورت شه ارور زیر رو میده. جای دیگه تست کردم درست ایمپورت میشه.
Error
SQL query:
CREATE TABLE `ahyir_profile_post` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` varchar(7) COLLATE utf8_persian_ci NOT NULL DEFAULT 'public',
`user` int(11) NOT NULL,
`message` text COLLATE utf8_persian_ci NOT NULL,
`link` int(11) DEFAULT NULL,
`image` int(11) DEFAULT NULL,
`file` int(11) DEFAULT NULL,
`video` int(11) DEFAULT NULL,
`like` int(11) NOT NULL DEFAULT '0',
`comment` int(11) NOT NULL DEFAULT '0',
`fav` tinyint(1) NOT NULL DEFAULT '0',
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`lastchange` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_persian_ci;
MySQL said: Documentation
#1293 - Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause
Error
SQL query:
CREATE TABLE `ahyir_profile_post` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` varchar(7) COLLATE utf8_persian_ci NOT NULL DEFAULT 'public',
`user` int(11) NOT NULL,
`message` text COLLATE utf8_persian_ci NOT NULL,
`link` int(11) DEFAULT NULL,
`image` int(11) DEFAULT NULL,
`file` int(11) DEFAULT NULL,
`video` int(11) DEFAULT NULL,
`like` int(11) NOT NULL DEFAULT '0',
`comment` int(11) NOT NULL DEFAULT '0',
`fav` tinyint(1) NOT NULL DEFAULT '0',
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`lastchange` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_persian_ci;
MySQL said: Documentation
#1293 - Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause