Ok nach weiteren Tests habe ich herausgefunden, dass das Shopware Update einen Key entfernen möchte der bereits entfernt wurde…
Um nun das Update erfolgreich durchführen zu können, muss der Key vor dem Update eingefügt werden.
Der SQL Befehl dafür lautet wie folgt:
ALTER TABLE `customer_address` ADD CONSTRAINT `fk.customer_address.salutation_id` FOREIGN KEY ( `salutation_id` ) REFERENCES `salutation` ( `id` ) ON DELETE SET NULL ON UPDATE NO ACTION;
Bei einem weiteren Updateversuch stellt man dann fest, das die salutation_id nicht nur in der customer_address Tabelle fehlt sondern auch in customer, order_customer, order_address und newsletter_recipient. Man kann diese auch in der Migrationsdatei unter \vendor\shopware\Core\Migration\V6_5\Migration1673420896RemoveUndefinedSalutation.php finden.
Daher sollte man auch diese SQL-Befehle in der Datenbank ausführen:
ALTER TABLE `customer` ADD CONSTRAINT `fk.customer.salutation_id` FOREIGN KEY ( `salutation_id` ) REFERENCES `salutation` ( `id` ) ON DELETE SET NULL ON UPDATE NO ACTION;
ALTER TABLE `order_customer` ADD CONSTRAINT `fk.order_customer.salutation_id` FOREIGN KEY ( `salutation_id` ) REFERENCES `salutation` ( `id` ) ON DELETE SET NULL ON UPDATE NO ACTION;
ALTER TABLE `order_address` ADD CONSTRAINT `fk.order_address.salutation_id` FOREIGN KEY ( `salutation_id` ) REFERENCES `salutation` ( `id` ) ON DELETE SET NULL ON UPDATE NO ACTION;
ALTER TABLE `newsletter_recipient` ADD CONSTRAINT `fk.newsletter_recipient.salutation_id` FOREIGN KEY ( `salutation_id` ) REFERENCES `salutation` ( `id` ) ON DELETE SET NULL ON UPDATE NO ACTION;
Danach lief das Update bei mir problemlos durch.