1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-05-27 05:08:11 +03:00

fix install

This commit is contained in:
Mzhelskiy Maxim 2011-08-28 15:15:58 +00:00
parent 55dff4e286
commit 9b48b9121e
2 changed files with 15 additions and 1 deletions

View file

@ -86,6 +86,9 @@ CREATE TABLE IF NOT EXISTS `prefix_city_user` (
CREATE TABLE IF NOT EXISTS `prefix_comment` (
`comment_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`comment_pid` int(11) unsigned DEFAULT NULL,
`comment_left` int(11) NOT NULL,
`comment_right` int(11) NOT NULL,
`comment_level` int(11) NOT NULL,
`target_id` int(11) unsigned DEFAULT NULL,
`target_type` enum('topic','talk') NOT NULL DEFAULT 'topic',
`target_parent_id` int(11) NOT NULL DEFAULT '0',
@ -104,7 +107,10 @@ CREATE TABLE IF NOT EXISTS `prefix_comment` (
KEY `id_type` (`target_id`,`target_type`),
KEY `type_delete_publish` (`target_type`,`comment_delete`,`comment_publish`),
KEY `user_type` (`user_id`,`target_type`),
KEY `target_parent_id` (`target_parent_id`)
KEY `target_parent_id` (`target_parent_id`),
KEY `comment_left` (`comment_left`),
KEY `comment_right` (`comment_right`),
KEY `comment_level` (`comment_level`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------

View file

@ -98,3 +98,11 @@ ALTER TABLE `prefix_stream_event` ADD INDEX ( `user_id` ) ;
ALTER TABLE `prefix_stream_event` ADD FOREIGN KEY ( `user_id` ) REFERENCES `prefix_user` (
`user_id`
) ON DELETE CASCADE ON UPDATE CASCADE ;
ALTER TABLE `prefix_comment` ADD `comment_left` INT NOT NULL AFTER `comment_pid`;
ALTER TABLE `prefix_comment` ADD `comment_right` INT NOT NULL AFTER `comment_left`;
ALTER TABLE `prefix_comment` ADD `comment_level` INT NOT NULL AFTER `comment_right`;
ALTER TABLE `prefix_comment` ADD INDEX ( `comment_left` );
ALTER TABLE `prefix_comment` ADD INDEX ( `comment_right` );
ALTER TABLE `prefix_comment` ADD INDEX ( `comment_level` );