ACSD-48216: AUTO_INCREMENT der Tabelle inventory_source_item steigt mit UPDATE Vorgang
Der Patch ACSD-48216 behebt das Problem, dass AUTO_INCREMENT der Tabelle Inventory_source_item beim Vorgang UPDATE zunimmt. Dieser Patch ist verfügbar, wenn Quality Patches Tool (QPT) 1.1.27 installiert ist. Die Patch-ID ist ACSD-48216. Beachten Sie, dass das Problem voraussichtlich in Adobe Commerce 2.4.7 behoben wird.
Betroffene Produkte und Versionen
Der Patch wird für die Adobe Commerce-Version erstellt:
- Adobe Commerce (alle Bereitstellungsmethoden) 2.4.4
Kompatibel mit Adobe Commerce-Versionen:
- Adobe Commerce (alle Bereitstellungsmethoden) 2.3.7 - 2.4.6
magento/quality-patches
auf die neueste Version und überprüfen Sie die Kompatibilität auf der Seite Quality Patches Tool: Nach Patches suchen. Verwenden Sie die Patch-ID als Suchbegriff, um den Patch zu finden.Problem
AUTO_INCREMENT
der inventory_source_item
erhöht sich beim UPDATE
.
Schritte zur Reproduktion:
- Überprüfen Sie den aktuellen Wert von
AUTO_INCREMENT
derinventory_source_item
Tabelle:
MySQL > show create table inventory_source_item;
CREATE TABLE `inventory_source_item` (
`source_item_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`source_code` varchar(255) NOT NULL,
`sku` varchar(64) NOT NULL,
`quantity` decimal(12,4) NOT NULL DEFAULT '0.0000',
`status` smallint(5) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`source_item_id`),
UNIQUE KEY `INVENTORY_SOURCE_ITEM_SOURCE_CODE_SKU` (`source_code`,`sku`),
KEY `INVENTORY_SOURCE_ITEM_SKU_SOURCE_CODE_QUANTITY` (`sku`,`source_code`,`quantity`),
CONSTRAINT `INVENTORY_SOURCE_ITEM_SOURCE_CODE_INVENTORY_SOURCE_SOURCE_CODE` FOREIGN KEY (`source_code`) REFERENCES `inventory_source` (`source_code`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2048 DEFAULT CHARSET=utf8
- Eine API-Anfrage für ein bestimmtes Produkt stellen:
Endpoint: /rest/V1/inventory/source-items
Method: POST
Headers: Authorization: Bearer <admin_token>
Payload:
{
"sourceItems": [
{
"sku": "24-MB01",
"source_code": "default",
"quantity": 200,
"status": 1
}
]
}
- Überprüfen Sie erneut den
AUTO_INCREMENT
derinventory_source_item
.
Erwartete Ergebnisse:
Der AUTO_INCREMENT
der inventory_source_item
Tabelle erhöht sich nicht nach jedem Aktualisierungsvorgang.
Tatsächliche Ergebnisse:
Der AUTO_INCREMENT
der inventory_source_item
erhöht sich nach jedem Aktualisierungsvorgang.
Patch anwenden
Verwenden Sie je nach Bereitstellungsmethode die folgenden Links, um einzelne Patches anzuwenden:
- Adobe Commerce oder Magento Open Source On-Premise: Quality Patches Tool >im Quality Patches Tool
- Adobe Commerce in Cloud-Infrastruktur: Upgrades und Patches > Patches anwenden im Handbuch zu Commerce in Cloud-Infrastruktur
Verwandtes Lesen
- Quality Patches Tool Veröffentlicht: Ein neues Tool zur Selbstbedienung hochwertiger Patches in der Support-Wissensdatenbank
- Überprüfen Sie, ob für Ihr Adobe Commerce-Problem ein Patch verfügbar ist Quality Patches Tool im Quality Patches Tool Handbuch
- Best Practices zum Ändern von Datenbanktabellen im Commerce-Implementierungs-Playbook
Weitere Informationen zu anderen in QPT verfügbaren Patches finden Sie unter Quality Patches Tool: Suchen nach Patches im Quality Patches Tool.