clear(); $result = true; $sql = []; $sql[] = ['product', 'empik_offer_price', 'DECIMAL(20, 2) NOT NULL DEFAULT 0']; $sql[] = ['product', 'empik_offer_price_reduced', 'DECIMAL(20, 2) NOT NULL DEFAULT 0']; $sql[] = ['product_attribute', 'empik_offer_price', 'DECIMAL(20, 2) NOT NULL DEFAULT 0']; $sql[] = ['product_attribute', 'empik_offer_price_reduced', 'DECIMAL(20, 2) NOT NULL DEFAULT 0']; foreach ($sql as $query) { $result &= DbUtils::safeAddColumn($query[0], $query[1], $query[2]); } return $result; }