first commit

This commit is contained in:
2024-10-28 22:14:22 +01:00
commit b65352c452
40581 changed files with 5712079 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
drwxr-xr-x 2 30094 users 3 Oct 6 10:16 .
drwxr-xr-x 10 30094 users 21 Oct 6 10:16 ..
-rw-r--r-- 1 30094 users 1260 Oct 14 2021 Upgrade-1.3.7.php

View File

@@ -0,0 +1,31 @@
<?php
/**
* @param Ps_eventbus $module
*
* @return bool
*/
function upgrade_module_1_3_7($module)
{
$module->registerhook('actionObjectCarrierAddAfter');
$module->registerhook('actionObjectCarrierUpdateAfter');
$module->registerhook('actionObjectCarrierDeleteAfter');
$module->registerhook('actionObjectCountryAddAfter');
$module->registerhook('actionObjectCountryUpdateAfter');
$module->registerhook('actionObjectCountryDeleteAfter');
$module->registerhook('actionObjectStateAddAfter');
$module->registerhook('actionObjectStateUpdateAfter');
$module->registerhook('actionObjectStateUpdateAfter');
$module->registerhook('actionObjectZoneAddAfter');
$module->registerhook('actionObjectZoneUpdateAfter');
$module->registerhook('actionObjectZoneDeleteAfter');
$module->registerhook('actionObjectTaxAddAfter');
$module->registerhook('actionObjectTaxUpdateAfter');
$module->registerhook('actionObjectTaxDeleteAfter');
$module->registerhook('actionObjectTaxRulesGroupAddAfter');
$module->registerhook('actionObjectTaxRulesGroupUpdateAfter');
$module->registerhook('actionObjectTaxRulesGroupDeleteAfter');
$module->registerhook('actionShippingPreferencesPageSave');
return true;
}

View File

@@ -0,0 +1,14 @@
<?php
/**
* @return bool
*/
function upgrade_module_1_5_1()
{
$db = Db::getInstance();
$db->delete('eventbus_deleted_objects', 'id_object = 0');
$db->delete('eventbus_incremental_sync', 'id_object = 0');
return true;
}

View File

@@ -0,0 +1,15 @@
<?php
/**
* @param Ps_eventbus $module
*
* @return bool
*/
function upgrade_module_1_5_2($module)
{
$module->registerhook('actionObjectSpecificPriceAddAfter');
$module->registerhook('actionObjectSpecificPriceUpdateAfter');
$module->registerhook('actionObjectSpecificPriceDeleteAfter');
return true;
}

View File

@@ -0,0 +1,13 @@
<?php
/**
* @param Ps_eventbus $module
*
* @return bool
*/
function upgrade_module_1_6_9($module)
{
$module->registerhook('actionObjectCombinationDeleteAfter');
return true;
}

View File

@@ -0,0 +1,13 @@
<?php
/**
* @return bool
*/
function upgrade_module_1_7_1()
{
$db = Db::getInstance();
$db->update('eventbus_type_sync', ['full_sync_finished' => 0], '`type` = "products"');
return true;
}

View File

@@ -0,0 +1,13 @@
<?php
/**
* @return bool
*/
function upgrade_module_1_7_11()
{
$db = Db::getInstance();
$db->update('eventbus_type_sync', ['full_sync_finished' => 0], '`type` = "orders"');
return true;
}

View File

@@ -0,0 +1,13 @@
<?php
/**
* @return bool
*/
function upgrade_module_1_7_15()
{
$db = Db::getInstance();
$db->update('eventbus_type_sync', ['full_sync_finished' => 0], '`type` = "orders"');
return true;
}

View File

@@ -0,0 +1,17 @@
<?php
use PrestaShop\Module\PsEventbus\Config\Config;
/**
* @return bool
*/
function upgrade_module_1_7_2()
{
$db = Db::getInstance();
$db->update('eventbus_incremental_sync', ['type' => Config::COLLECTION_CUSTOM_PRODUCT_CARRIERS], '`type` = "custom_product_carrier"');
$db->update('eventbus_incremental_sync', ['type' => Config::COLLECTION_SPECIFIC_PRICES], '`type` = "specific_price"');
$db->update('eventbus_incremental_sync', ['type' => Config::COLLECTION_CARRIERS], '`type` = "carrier"');
return true;
}

View File

@@ -0,0 +1,14 @@
<?php
/**
* @return bool
*/
function upgrade_module_1_8_1()
{
$db = Db::getInstance();
$db->update('eventbus_type_sync', ['full_sync_finished' => 0], '`type` = "orders"');
$db->update('eventbus_type_sync', ['full_sync_finished' => 0], '`type` = "info"');
return true;
}