Files
2025-04-01 00:38:54 +02:00

50 lines
1.8 KiB
PHP

<?php
/**
* 2012-2019 Patryk Marek PrestaDev.pl
*
* Patryk Marek PrestaDev.pl - PD CSV Price update on products © All rights reserved.
*
* DISCLAIMER
*
* Do not edit, modify or copy this file.
* If you wish to customize it, contact us at info@prestadev.pl.
*
* @author Patryk Marek PrestaDev.pl <info@prestadev.pl>
* @copyright 2012-2019 Patryk Marek - PrestaDev.pl
* @license License is for use in domain / or one multistore enviroment (do not modify or reuse this code or part of it) if you want any changes please contact with me at info@prestadev.pl
* @link http://prestadev.pl
* @package PD CSV Price update on products - PrestaShop 1.5.x and 1.6.x Module and 1.7.x Module
* @version 1.0.3
* @date 20-02-2017
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_0_3($module)
{
Configuration::updateValue('PD_CSVQU_SAME_CSV', 1);
Configuration::deleteByName('PD_CSVQU_LAST_UPDATE');
Configuration::deleteByName('PD_CSVQU_PROD_COUNT');
Configuration::deleteByName('PD_CSVQU_PROD_U_COUNT');
return Db::getInstance()->execute('
CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'pdcsvpriceupdate_history` (
`id_history_csv` int(10) unsigned NOT NULL AUTO_INCREMENT,
`file_name` varchar(255) NOT NULL,
`csv_header_ignore` tinyint(1) DEFAULT 0,
`same_csv_allow` tinyint(1) DEFAULT 0,
`csv_delimeter` varchar(16) NOT NULL,
`products_csv` int(10) unsigned NOT NULL,
`products_updated` int(10) unsigned NOT NULL,
`products_not_found` int(10) unsigned NOT NULL,
`update_type` int(10) unsigned NOT NULL,
`products_identifier` int(10) unsigned NOT NULL,
`date_add` date,
PRIMARY KEY (`id_history_csv`)
) ENGINE='._MYSQL_ENGINE_.' DEFAULT CHARSET=UTF8;
');
}