I am getting three SQL errors when I attempt to upgrade from 1.5.2 to 1.6.3 No matter what I do, even if I delete tables and follow what SQL tells me, I can’t get out of them. Please see the errors below. Any ideas?
Description: Table ‘exp_sites’ already exists
Query: CREATE TABLE `exp_sites` ( `site_id` int(5) unsigned NOT NULL auto_increment, `site_label` varchar(100) NOT NULL default ‘’, `site_name` varchar(50) NOT NULL default ‘’, `site_description` text NOT NULL, `site_system_preferences` TEXT NOT NULL , `site_mailinglist_preferences` TEXT NOT NULL , `site_member_preferences` TEXT NOT NULL , `site_template_preferences` TEXT NOT NULL , `site_weblog_preferences` TEXT NOT NULL , PRIMARY KEY (`site_id`), KEY `site_name` (`site_name`))
Description: Can’t DROP ‘PRIMARY’; check that column/key exists
Query: ALTER TABLE `exp_member_groups` DROP PRIMARY KEY
Description: Duplicate column name ‘site_id’
Query: ALTER TABLE `exp_categories` ADD `site_id` INT(4) UNSIGNED NOT NULL DEFAULT 1 AFTER `cat_id`
MySQL ERROR:
Error Number: 1060
Description: Duplicate column name ‘site_id’
Query: ALTER TABLE `exp_category_groups` ADD `site_id` INT(4) UNSIGNED NOT NULL DEFAULT 1 AFTER `group_id`
MySQL ERROR:
Error Number: 1060
Description: Duplicate column name ‘site_id’
Query: ALTER TABLE `exp_comments` ADD `site_id` INT(4) UNSIGNED NOT NULL DEFAULT 1 AFTER `comment_id`
