This commit is contained in:
2025-04-01 00:38:54 +02:00
parent d4d4c0c09d
commit 87da06293a
22351 changed files with 5168854 additions and 7538 deletions

View File

@@ -0,0 +1,27 @@
<?php
use Empik\Marketplace\Adapter\ConfigurationAdapter;
use Empik\Marketplace\Cache\CacheClearer;
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* @param EmpikMarketplace $object
* @return bool
*/
function upgrade_module_1_4_0($object)
{
(new CacheClearer($object))->clear();
$result = true;
$sql[] = 'ALTER TABLE `' . _DB_PREFIX_ . 'empik_product` ADD COLUMN `condition` INT(4) NOT NULL DEFAULT 11 AFTER `logistic_class`;';
foreach ($sql as $query) {
$result &= Db::getInstance()->execute($query);
}
return $result;
}