при запуске миграции пишет <br/>You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=cp1251' at line 28<br/>CREATE TABLE `cms_board_cats` (<br/> `id` int(11) NOT NULL auto_increment,<br/> `parent_id` int(11) NOT NULL,<br/> `ordering` int(11) NOT NULL default '1',<br/> `NSLeft` int(11) NOT NULL,<br/> `NSRight` int(11) NOT NULL,<br/> `NSDiffer` varchar(15) NOT NULL,<br/> `NSIgnore` int(11) NOT NULL,<br/> `NSLevel` int(11) NOT NULL,<br/> `title` varchar(100) NOT NULL,<br/> `description` varchar(100) NOT NULL,<br/> `published` int(11) NOT NULL,<br/> `orderform` int(11) default '1',<br/> `showdate` int(11) NOT NULL default '1',<br/> `pubdate` datetime NOT NULL,<br/> `orderby` varchar(20) NOT NULL default 'title',<br/> `orderto` varchar(4) NOT NULL default 'asc',<br/> `public` int(11) NOT NULL,<br/> `perpage` int(11) NOT NULL default '15',<br/> `maxcols` int(11) NOT NULL default '1',<br/> `thumb1` int(11) NOT NULL default '64',<br/> `thumb2` int(11) NOT NULL default '400',<br/> `thumbsqr` int(11) NOT NULL default '0',<br/> `uplimit` int(11) NOT NULL default '10',<br/> `is_photos` int(11) NOT NULL default '1',<br/> `icon` varchar(25) default 'folder_grey.png',<br/> PRIMARY KEY (`id`)<br/> ) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=cp1251<br/>при заходе в профиль или еще куда выдает <br/>You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(NOW(), u.logdate)=1, DATE_FORMAT(u.logdate, ' Вчера в %H:%i'),D<br/>SELECT u.*, p.*, u.id as id, u.is_deleted as is_deleted, IFNULL(p.gender, 0) as gender,<br/> g.title as grp,<br/> IF(DATE_FORMAT(u.regdate, '%d-%m-%Y')=DATE_FORMAT(NOW(), '%d-%m-%Y'), DATE_FORMAT(u.regdate, ' Сегодня, %H:%i'), DATE_FORMAT(u.regdate, '%d, %M %Y')) as fregdate,<br/> IF(DATE_FORMAT(u.birthdate, '%d-%m-%Y')=DATE_FORMAT(NOW(), '%d-%m-%Y'), DATE_FORMAT(u.birthdate, ' Сегодня!'), DATE_FORMAT(u.birthdate, '%d, %M %Y')) as birthdate,<br/> IF(DATE_FORMAT(u.logdate, '%d-%m-%Y')=DATE_FORMAT(NOW(), '%d-%m-%Y'), DATE_FORMAT(u.logdate, 'Cегодня в %H:%i'), <br/> IF(DATEDIFF(NOW(), u.logdate)=1, DATE_FORMAT(u.logdate, ' Вчера в %H:%i'),DATE_FORMAT(u.logdate, '%d-%m-%Y в %H:%i') )) as flogdate<br/> FROM cms_users u, cms_user_profiles p, cms_user_groups g<br/> WHERE u.is_locked = 0 AND p.user_id = u.id AND u.id = 1 AND u.group_id = g.id<br/> LIMIT 1<br/>что делать?? как все же обновиться то???