Update from i-doit 0.9.9-1 to 0.9.9-2 fails ***SOLVED***
-
Dear i-doit team,
we are trying to upgrade our version to 0.9.9-2 but following error occurs
isys_exception_database : Query error: 'ALTER TABLE
isys_catg_drive_listDROP FOREIGN KEYisys_catg_drive_list_ibfk_3': Error on rename of './idoitnew_mandant/isys_catg_drive_list' to './idoitnew_mandant/#sql2-37fc-798' (errno: 152)It seems that this table has no such FOREIGN KEY
mysql> SHOW CREATE TABLE isys_catg_drive_list\G
*************************** 1. row ***************************
Table: isys_catg_drive_list
Create Table: CREATE TABLEisys_catg_drive_list(
isys_catg_drive_list__idint(10) unsigned NOT NULL AUTO_INCREMENT,
isys_catg_drive_list__isys_stor_raid_level__idint(10) unsigned DEFAULT NULL,
isys_catg_drive_list__isys_filesystem_type__idint(10) unsigned DEFAULT NULL,
isys_catg_drive_list__isys_stor_unit__idint(10) unsigned DEFAULT NULL,
isys_catg_drive_list__isys_memory_unit__idint(10) unsigned DEFAULT NULL,
isys_catg_drive_list__isys_catd_drive_type__idint(10) unsigned DEFAULT NULL,
isys_catg_drive_list__id__raid_poolint(10) unsigned DEFAULT NULL,
isys_catg_drive_list__titlevarchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
isys_catg_drive_list__capacitybigint(20) DEFAULT NULL,
isys_catg_drive_list__descriptiontext COLLATE utf8_unicode_ci,
isys_catg_drive_list__drivelettervarchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
isys_catg_drive_list__partitionmappingvarchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
isys_catg_drive_list__filesystemvarchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
isys_catg_drive_list__sortint(10) unsigned DEFAULT '5',
isys_catg_drive_list__constvarchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
isys_catg_drive_list__propertyint(10) unsigned DEFAULT '0',
isys_catg_drive_list__statusint(10) unsigned DEFAULT '2',
isys_catg_drive_list__isys_obj__idint(10) unsigned DEFAULT NULL,
PRIMARY KEY (isys_catg_drive_list__id),
KEYisys_catd_drive_list_FKIndex2(isys_catg_drive_list__id__raid_pool),
KEYisys_catd_drive_list_FKIndex3(isys_catg_drive_list__isys_catd_drive_type__id),
KEYisys_catd_drive_list_FKIndex4(isys_catg_drive_list__isys_stor_unit__id),
KEYisys_catd_drive_list_FKIndex5(isys_catg_drive_list__isys_filesystem_type__id),
KEYisys_catd_drive_list_FKIndex6(isys_catg_drive_list__isys_stor_raid_level__id),
KEYisys_catd_drive_list__isys_memory_unit__id(isys_catg_drive_list__isys_memory_unit__id),
KEYisys_catg_drive_list__isys_obj__id(isys_catg_drive_list__isys_obj__id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
1 row in set (0.00 sec)Do you know about some workaround that we can continue with upgrade?
-
SOLVED: problem is in our database - foreign keys are missing. They were not created for some strange reason
Update runs smoothly after creating foreign keys
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login