first commit
This commit is contained in:
29
modules/pdgooglemerchantcenterpro/upgrade/index.php
Normal file
29
modules/pdgooglemerchantcenterpro/upgrade/index.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* 2012-2015 Patryk Marek PrestaDev.pl
|
||||
*
|
||||
* Patryk Marek PrestaDev.pl - PD Google Merchant Center Pro © 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-2015 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 Google Merchant Center Pro - PrestaShop 1.5.x and 1.6.x Module
|
||||
* @version 2.2.0
|
||||
* @date 04-03-2016
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
40
modules/pdgooglemerchantcenterpro/upgrade/upgrade-2.1.3.php
Normal file
40
modules/pdgooglemerchantcenterpro/upgrade/upgrade-2.1.3.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* 2012-2015 Patryk Marek PrestaDev.pl
|
||||
*
|
||||
* Patryk Marek PrestaDev.pl - PD Google Merchant Center Pro © 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-2015 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 Google Merchant Center Pro - PrestaShop 1.5.x and 1.6.x Module
|
||||
* @version 2.2.0
|
||||
* @date 04-03-2016
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function updates your module from previous versions to the version 2.1.1,
|
||||
* usefull when you modify your database, or register a new hook ...
|
||||
* Don't forget to create one file per version.
|
||||
*/
|
||||
function upgrade_module_2_1_3($module)
|
||||
{
|
||||
/**
|
||||
* Do everything you want right there,
|
||||
* You could add a column in one of your module's tables
|
||||
*/
|
||||
|
||||
Db::getInstance(_PS_USE_SQL_SLAVE_)->Execute('ALTER TABLE `'._DB_PREFIX_.'pdgooglemerchantcenterpro` ADD `unit_pricing_measure` tinyint(1) NOT NULL default 0');
|
||||
|
||||
return true;
|
||||
}
|
||||
45
modules/pdgooglemerchantcenterpro/upgrade/upgrade-2.1.4.php
Normal file
45
modules/pdgooglemerchantcenterpro/upgrade/upgrade-2.1.4.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* 2012-2015 Patryk Marek PrestaDev.pl
|
||||
*
|
||||
* Patryk Marek PrestaDev.pl - PD Google Merchant Center Pro © 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-2015 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 Google Merchant Center Pro - PrestaShop 1.5.x and 1.6.x Module
|
||||
* @version 2.2.0
|
||||
* @date 04-03-2016
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function updates your module from previous versions to the version 1.1,
|
||||
* usefull when you modify your database, or register a new hook ...
|
||||
* Don't forget to create one file per version.
|
||||
*/
|
||||
function upgrade_module_2_1_4($module)
|
||||
{
|
||||
/**
|
||||
* Do everything you want right there,
|
||||
* You could add a column in one of your module's tables
|
||||
*/
|
||||
|
||||
Db::getInstance(_PS_USE_SQL_SLAVE_)->Execute('ALTER TABLE `'._DB_PREFIX_.'product_lang` ADD `product_name_google_shopping` varchar(256) NOT NULL');
|
||||
Db::getInstance(_PS_USE_SQL_SLAVE_)->Execute('ALTER TABLE `'._DB_PREFIX_.'product` ADD `in_google_shopping` tinyint(1) NOT NULL default 1');
|
||||
Db::getInstance(_PS_USE_SQL_SLAVE_)->Execute('ALTER TABLE `'._DB_PREFIX_.'product_shop` ADD `in_google_shopping` tinyint(1) NOT NULL default 1');
|
||||
|
||||
$module->registerHook('displayAdminProductsExtra');
|
||||
$module->registerHook('addProduct');
|
||||
|
||||
return true;
|
||||
}
|
||||
45
modules/pdgooglemerchantcenterpro/upgrade/upgrade-2.1.5.php
Normal file
45
modules/pdgooglemerchantcenterpro/upgrade/upgrade-2.1.5.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* 2012-2015 Patryk Marek PrestaDev.pl
|
||||
*
|
||||
* Patryk Marek PrestaDev.pl - PD Google Merchant Center Pro © 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-2015 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 Google Merchant Center Pro - PrestaShop 1.5.x and 1.6.x Module
|
||||
* @version 2.2.0
|
||||
* @date 04-03-2016
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function updates your module from previous versions to the version 1.1,
|
||||
* usefull when you modify your database, or register a new hook ...
|
||||
* Don't forget to create one file per version.
|
||||
*/
|
||||
function upgrade_module_2_1_5($module)
|
||||
{
|
||||
/**
|
||||
* Do everything you want right there,
|
||||
* You could add a column in one of your module's tables
|
||||
*/
|
||||
|
||||
Db::getInstance(_PS_USE_SQL_SLAVE_)->Execute('ALTER TABLE `'._DB_PREFIX_.'product_lang` ADD `custom_label_0` varchar(100) NOT NULL');
|
||||
Db::getInstance(_PS_USE_SQL_SLAVE_)->Execute('ALTER TABLE `'._DB_PREFIX_.'product_lang` ADD `custom_label_1` varchar(100) NOT NULL');
|
||||
Db::getInstance(_PS_USE_SQL_SLAVE_)->Execute('ALTER TABLE `'._DB_PREFIX_.'product_lang` ADD `custom_label_2` varchar(100) NOT NULL');
|
||||
Db::getInstance(_PS_USE_SQL_SLAVE_)->Execute('ALTER TABLE `'._DB_PREFIX_.'product_lang` ADD `custom_label_3` varchar(100) NOT NULL');
|
||||
Db::getInstance(_PS_USE_SQL_SLAVE_)->Execute('ALTER TABLE `'._DB_PREFIX_.'product_lang` ADD `custom_label_4` varchar(100) NOT NULL');
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
38
modules/pdgooglemerchantcenterpro/upgrade/upgrade-2.1.9.php
Normal file
38
modules/pdgooglemerchantcenterpro/upgrade/upgrade-2.1.9.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* 2012-2015 Patryk Marek PrestaDev.pl
|
||||
*
|
||||
* Patryk Marek PrestaDev.pl - PD Google Merchant Center Pro © 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-2015 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 Google Merchant Center Pro - PrestaShop 1.5.x and 1.6.x Module
|
||||
* @version 2.2.0
|
||||
* @date 04-03-2016
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function updates your module from previous versions to the version 1.1,
|
||||
* usefull when you modify your database, or register a new hook ...
|
||||
* Don't forget to create one file per version.
|
||||
*/
|
||||
function upgrade_module_2_1_9($module)
|
||||
{
|
||||
/**
|
||||
* Do everything you want right there,
|
||||
* You could add a column in one of your module's tables
|
||||
*/
|
||||
Db::getInstance(_PS_USE_SQL_SLAVE_)->Execute('ALTER TABLE `'._DB_PREFIX_.'pdgooglemerchantcenterpro` ADD `id_image_type` int(11) unsigned NOT NULL DEFAULT 0');
|
||||
return true;
|
||||
}
|
||||
38
modules/pdgooglemerchantcenterpro/upgrade/upgrade-2.2.3.php
Normal file
38
modules/pdgooglemerchantcenterpro/upgrade/upgrade-2.2.3.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* 2012-2015 Patryk Marek PrestaDev.pl
|
||||
*
|
||||
* Patryk Marek PrestaDev.pl - PD Google Merchant Center Pro © 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-2015 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 Google Merchant Center Pro - PrestaShop 1.5.x and 1.6.x Module
|
||||
* @version 2.2.0
|
||||
* @date 04-03-2016
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function updates your module from previous versions to the version 1.1,
|
||||
* usefull when you modify your database, or register a new hook ...
|
||||
* Don't forget to create one file per version.
|
||||
*/
|
||||
function upgrade_module_2_2_3($module)
|
||||
{
|
||||
/**
|
||||
* Do everything you want right there,
|
||||
* You could add a column in one of your module's tables
|
||||
*/
|
||||
Db::getInstance(_PS_USE_SQL_SLAVE_)->Execute('ALTER TABLE `'._DB_PREFIX_.'pdgooglemerchantcenterpro` ADD `gid_prefix` text');
|
||||
return true;
|
||||
}
|
||||
38
modules/pdgooglemerchantcenterpro/upgrade/upgrade-2.2.4.php
Normal file
38
modules/pdgooglemerchantcenterpro/upgrade/upgrade-2.2.4.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* 2012-2015 Patryk Marek PrestaDev.pl
|
||||
*
|
||||
* Patryk Marek PrestaDev.pl - PD Google Merchant Center Pro © 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-2015 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 Google Merchant Center Pro - PrestaShop 1.5.x and 1.6.x Module
|
||||
* @version 2.2.4
|
||||
* @date 04-03-2016
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function updates your module from previous versions to the version 1.1,
|
||||
* usefull when you modify your database, or register a new hook ...
|
||||
* Don't forget to create one file per version.
|
||||
*/
|
||||
function upgrade_module_2_2_4($module)
|
||||
{
|
||||
/**
|
||||
* Do everything you want right there,
|
||||
* You could add a column in one of your module's tables
|
||||
*/
|
||||
Db::getInstance(_PS_USE_SQL_SLAVE_)->Execute('ALTER TABLE `'._DB_PREFIX_.'product_lang` ADD `product_short_desc_google_shopping` TEXT');
|
||||
return true;
|
||||
}
|
||||
41
modules/pdgooglemerchantcenterpro/upgrade/upgrade-2.3.1.php
Normal file
41
modules/pdgooglemerchantcenterpro/upgrade/upgrade-2.3.1.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/**
|
||||
* 2012-2015 Patryk Marek PrestaDev.pl
|
||||
*
|
||||
* Patryk Marek PrestaDev.pl - PD Google Merchant Center Pro © 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-2015 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 Google Merchant Center Pro - PrestaShop 1.5.x and 1.6.x Module
|
||||
* @version 2.2.4
|
||||
* @date 04-03-2016
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function updates your module from previous versions to the version 1.1,
|
||||
* usefull when you modify your database, or register a new hook ...
|
||||
* Don't forget to create one file per version.
|
||||
*/
|
||||
function upgrade_module_2_3_1($module)
|
||||
{
|
||||
/**
|
||||
* Do everything you want right there,
|
||||
* You could add a column in one of your module's tables
|
||||
*/
|
||||
Db::getInstance(_PS_USE_SQL_SLAVE_)->Execute('ALTER TABLE `'._DB_PREFIX_.'pdgooglemerchantcenterpro` ADD `sizes_attribute_group` varchar(255) NOT NULL');
|
||||
Db::getInstance(_PS_USE_SQL_SLAVE_)->Execute('ALTER TABLE `'._DB_PREFIX_.'pdgooglemerchantcenterpro` ADD
|
||||
`color_attribute_group` int(10) unsigned NOT NULL');
|
||||
|
||||
return true;
|
||||
}
|
||||
39
modules/pdgooglemerchantcenterpro/upgrade/upgrade-2.3.6.php
Normal file
39
modules/pdgooglemerchantcenterpro/upgrade/upgrade-2.3.6.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* 2012-2015 Patryk Marek PrestaDev.pl
|
||||
*
|
||||
* Patryk Marek PrestaDev.pl - PD Google Merchant Center Pro © 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-2015 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 Google Merchant Center Pro - PrestaShop 1.5.x and 1.6.x Module
|
||||
* @version 2.2.0
|
||||
* @date 04-03-2016
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function updates your module from previous versions to the version 1.1,
|
||||
* usefull when you modify your database, or register a new hook ...
|
||||
* Don't forget to create one file per version.
|
||||
*/
|
||||
function upgrade_module_2_3_6($module)
|
||||
{
|
||||
/**
|
||||
* Do everything you want right there,
|
||||
* You could add a column in one of your module's tables
|
||||
*/
|
||||
Db::getInstance(_PS_USE_SQL_SLAVE_)->Execute('ALTER TABLE `'._DB_PREFIX_.'pdgooglemerchantcenterpro` ADD `available_for_order` tinyint(1) NOT NULL default 1');
|
||||
|
||||
return true;
|
||||
}
|
||||
41
modules/pdgooglemerchantcenterpro/upgrade/upgrade-2.4.2.php
Normal file
41
modules/pdgooglemerchantcenterpro/upgrade/upgrade-2.4.2.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/**
|
||||
* 2012-2015 Patryk Marek PrestaDev.pl
|
||||
*
|
||||
* Patryk Marek PrestaDev.pl - PD Google Merchant Center Pro © 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-2015 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 Google Merchant Center Pro - PrestaShop 1.5.x and 1.6.x Module
|
||||
* @version 2.2.0
|
||||
* @date 04-03-2016
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function updates your module from previous versions to the version 1.1,
|
||||
* usefull when you modify your database, or register a new hook ...
|
||||
* Don't forget to create one file per version.
|
||||
*/
|
||||
function upgrade_module_2_4_2($module)
|
||||
{
|
||||
/**
|
||||
* Do everything you want right there,
|
||||
* You could add a column in one of your module's tables
|
||||
*/
|
||||
Db::getInstance(_PS_USE_SQL_SLAVE_)->Execute('ALTER TABLE `'._DB_PREFIX_.'pdgooglemerchantcenterpro` ADD `ean_validiation` tinyint(1) NOT NULL default 0');
|
||||
|
||||
Db::getInstance(_PS_USE_SQL_SLAVE_)->Execute('ALTER TABLE `'._DB_PREFIX_.'pdgooglemerchantcenterpro` ADD `html_desc_cleaner` tinyint(1) NOT NULL default 0');
|
||||
|
||||
return true;
|
||||
}
|
||||
39
modules/pdgooglemerchantcenterpro/upgrade/upgrade-2.4.6.php
Normal file
39
modules/pdgooglemerchantcenterpro/upgrade/upgrade-2.4.6.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* 2012-2015 Patryk Marek PrestaDev.pl
|
||||
*
|
||||
* Patryk Marek PrestaDev.pl - PD Google Merchant Center Pro © 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-2015 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 Google Merchant Center Pro - PrestaShop 1.5.x and 1.6.x Module
|
||||
* @version 2.2.0
|
||||
* @date 04-03-2016
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function updates your module from previous versions to the version 1.1,
|
||||
* usefull when you modify your database, or register a new hook ...
|
||||
* Don't forget to create one file per version.
|
||||
*/
|
||||
function upgrade_module_2_4_6($module)
|
||||
{
|
||||
/**
|
||||
* Do everything you want right there,
|
||||
* You could add a column in one of your module's tables
|
||||
*/
|
||||
Db::getInstance(_PS_USE_SQL_SLAVE_)->Execute('ALTER TABLE `'._DB_PREFIX_.'pdgooglemerchantcenterpro` ADD `image_limit` int(11) unsigned NOT NULL DEFAULT 2');
|
||||
|
||||
return true;
|
||||
}
|
||||
39
modules/pdgooglemerchantcenterpro/upgrade/upgrade-2.5.6.php
Normal file
39
modules/pdgooglemerchantcenterpro/upgrade/upgrade-2.5.6.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* 2012-2015 Patryk Marek PrestaDev.pl
|
||||
*
|
||||
* Patryk Marek PrestaDev.pl - PD Google Merchant Center Pro © 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-2015 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 Google Merchant Center Pro - PrestaShop 1.5.x and 1.6.x Module
|
||||
* @version 2.2.0
|
||||
* @date 04-03-2016
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function updates your module from previous versions to the version 1.1,
|
||||
* usefull when you modify your database, or register a new hook ...
|
||||
* Don't forget to create one file per version.
|
||||
*/
|
||||
function upgrade_module_2_5_6($module)
|
||||
{
|
||||
/**
|
||||
* Do everything you want right there,
|
||||
* You could add a column in one of your module's tables
|
||||
*/
|
||||
$module->registerHook('actionAdminProductsListingFieldsModifier');
|
||||
|
||||
return true;
|
||||
}
|
||||
30
modules/pdgooglemerchantcenterpro/upgrade/upgrade-2.5.7.php
Normal file
30
modules/pdgooglemerchantcenterpro/upgrade/upgrade-2.5.7.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* 2012-2016 Patryk Marek PrestaDev.pl
|
||||
*
|
||||
* Patryk Marek PrestaDev.pl - PD Facebook Dynamic Ads Feed Pro © 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-2016 Patryk Marek - PrestaDev.pl
|
||||
* @link http://prestadev.pl
|
||||
* @package PD Facebook Dynamic Ads Feed Pro - PrestaShop 1.5.x and 1.6.x Module
|
||||
* @version 1.0.2
|
||||
* @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
|
||||
* @date 27-11-2016
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
function upgrade_module_2_5_7($module)
|
||||
{
|
||||
Db::getInstance(_PS_USE_SQL_SLAVE_)->Execute('ALTER TABLE `'._DB_PREFIX_.'pdgooglemerchantcenterpro` ADD `features_enabled` tinyint() unsigned NOT NULL DEFAULT 1');
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user