Skip to content

Commit

Permalink
fix: php stan & php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
fox-john committed Jan 9, 2025
1 parent 4e3d5ab commit 397dfe5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions upgrade/Upgrade-4.0.0.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,22 +165,22 @@ function migrateDeleteTableToIncremantalTable($db)

// Prepare the query with dynamic lang_iso
$migrationRequest = sprintf(
"INSERT INTO `" . _DB_PREFIX_ . "eventbus_incremental_sync` (type, id_object, id_shop, lang_iso, created_at, action)
'INSERT INTO `' . _DB_PREFIX_ . "eventbus_incremental_sync` (type, id_object, id_shop, lang_iso, created_at, action)
SELECT
type,
id_object,
id_shop,
'%s', -- This is a dynamic value
created_at,
'deleted'
FROM `" . _DB_PREFIX_ . "eventbus_deleted_objects`
FROM `" . _DB_PREFIX_ . 'eventbus_deleted_objects`
ON DUPLICATE KEY UPDATE
type = VALUES(type),
id_object = VALUES(id_object),
id_shop = VALUES(id_shop),
lang_iso = VALUES(lang_iso),
created_at = VALUES(created_at),
action = VALUES(action);",
action = VALUES(action);',
$defaultLangIso // This is where the dynamic value is injected
);

Expand Down

0 comments on commit 397dfe5

Please sign in to comment.