From f84571f43bbbf1650d573edf331a60392ac12a0f Mon Sep 17 00:00:00 2001 From: Exile Date: Wed, 21 Jan 2015 23:41:21 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BD=D1=83=D0=BB=D0=B5=D0=B2=D1=8B?= =?UTF-8?q?=D1=85=20=D0=B4=D0=B0=D1=82=20=D0=B2=20=D0=B4=D0=B0=D0=BC=D0=BF?= =?UTF-8?q?=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Вариант с 1000-01-01 00:00:00 правильный. --- install/sql/mysql.sql | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install/sql/mysql.sql b/install/sql/mysql.sql index ecd08412f..8fa8895f5 100644 --- a/install/sql/mysql.sql +++ b/install/sql/mysql.sql @@ -425,8 +425,8 @@ CREATE TABLE IF NOT EXISTS `bb_cron` ( `run_day` enum('1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28') DEFAULT NULL, `run_time` time DEFAULT '04:00:00', `run_order` tinyint(4) unsigned NOT NULL DEFAULT '0', - `last_run` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', - `next_run` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `last_run` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', + `next_run` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', `run_interval` time DEFAULT NULL DEFAULT '0', `log_enabled` tinyint(1) NOT NULL DEFAULT '0', `log_file` char(120) NOT NULL DEFAULT '', @@ -1033,7 +1033,7 @@ CREATE TABLE IF NOT EXISTS `bb_users` ( `user_rank` int(11) NOT NULL DEFAULT '0', `avatar_ext_id` tinyint(4) NOT NULL DEFAULT '0', `user_gender` tinyint(1) NOT NULL DEFAULT '0', - `user_birthday` date NOT NULL DEFAULT '0000-00-00', + `user_birthday` date NOT NULL DEFAULT '1000-01-01', `user_email` varchar(255) NOT NULL DEFAULT '', `user_skype` varchar(32) NOT NULL DEFAULT '', `user_twitter` varchar(15) NOT NULL DEFAULT '', @@ -1058,9 +1058,9 @@ CREATE TABLE IF NOT EXISTS `bb_users` ( -- ---------------------------- -- Records of bb_users -- ---------------------------- -INSERT INTO `bb_users` VALUES ('-1', '0', 'Guest', 'd41d8cd98f00b204e9800998ecf8427e', '0', '0', '0', UNIX_TIMESTAMP(), '0', '0', '0', '', '', '0', '0', '0', '0', '0', '0', '0', '0000-00-00', '', '', '', '', '', '', '', '', '', '', '', '', '0', '0.00', 'default'); -INSERT INTO `bb_users` VALUES ('-746', '0', 'bot', 'd41d8cd98f00b204e9800998ecf8427e', '0', '0', '0', UNIX_TIMESTAMP(), '0', '0', '0', '', '', '0', '0', '0', '144', '0', '0', '0', '0000-00-00', 'bot@torrentpier.me', '', '', '', '', '', '', '', '', '', '', '', '0', '0.00', 'default'); -INSERT INTO `bb_users` VALUES ('2', '1', 'admin', 'c3284d0f94606de1fd2af172aba15bf3', '0', '0', '0', UNIX_TIMESTAMP(), '0', '1', '1', '', '', '0', '0', '0', '304', '1', '0', '0', '0000-00-00', 'admin@torrentpier.me', '', '', '', '', '', '', '', '', '', '', '', '0', '0.00', 'default'); +INSERT INTO `bb_users` VALUES ('-1', '0', 'Guest', 'd41d8cd98f00b204e9800998ecf8427e', '0', '0', '0', UNIX_TIMESTAMP(), '0', '0', '0', '', '', '0', '0', '0', '0', '0', '0', '0', '1000-01-01', '', '', '', '', '', '', '', '', '', '', '', '', '0', '0.00', 'default'); +INSERT INTO `bb_users` VALUES ('-746', '0', 'bot', 'd41d8cd98f00b204e9800998ecf8427e', '0', '0', '0', UNIX_TIMESTAMP(), '0', '0', '0', '', '', '0', '0', '0', '144', '0', '0', '0', '1000-01-01', 'bot@torrentpier.me', '', '', '', '', '', '', '', '', '', '', '', '0', '0.00', 'default'); +INSERT INTO `bb_users` VALUES ('2', '1', 'admin', 'c3284d0f94606de1fd2af172aba15bf3', '0', '0', '0', UNIX_TIMESTAMP(), '0', '1', '1', '', '', '0', '0', '0', '304', '1', '0', '0', '1000-01-01', 'admin@torrentpier.me', '', '', '', '', '', '', '', '', '', '', '', '0', '0.00', 'default'); -- ---------------------------- -- Table structure for `bb_user_group`