File size: 855B
alter table `user` add `v_guest` int(1) default '1';
drop table `guest`;
CREATE TABLE IF NOT EXISTS `guest` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`id_user` int(11) NOT NULL DEFAULT '0',
`time` int(11) NOT NULL,
`msg` varchar(1024) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`dir` varchar(12) DEFAULT NULL,
`fon` int(3) DEFAULT '31',
`cit` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `time` (`time`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `guest_glum` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`id_user` int(11) NOT NULL DEFAULT '0',
`time` int(11) NOT NULL,
`dir` varchar(12) DEFAULT NULL,
`img` int(11) DEFAULT '1',
`margin_left` int(11) DEFAULT '0',
`id_post` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;