Shopware 6 – 6.3.1.1 Update Error SQL
Beim Update auf Shopware 6.3.1.1 wird es vermutlich zu einem SQL Problem kommen. Nachfolgender SQL wird ausgeführt, kann aber aufgrund der Benutzerrechte bei managed Servern zu Problemen führen.
CREATE TRIGGER product_listing_price_update BEFORE UPDATE ON product FOR EACH ROW BEGIN IF @TRIGGER_DISABLED IS NULL OR @TRIGGER_DISABLED = 0 THEN IF NEW.listing_prices IS NOT NULL THEN IF JSON_CONTAINS_PATH(NEW.listing_prices, 'one', '$.structs') = 1 THEN SET NEW.listing_prices = NULL; END IF; END IF; END IF; END;
Folgender Fehler wird ausgegeben.
SQLSTATE[42000]: Syntax error or access violation: 1142 TRIGGER command denied to user 'USER'@'127.0.0.1' for table 'product'
Die Lösung ist denkbar einfach. Öffnet die .env Datei aus dem Root-Verzeichnis und setzt
BLUE_GREEN_DEPLOYMENT=0

