HEX
Server: Apache
System: Linux srv13.cpanelhost.cl 3.10.0-962.3.2.lve1.5.38.el7.x86_64 #1 SMP Thu Jun 18 05:28:41 EDT 2020 x86_64
User: cca63905 (4205)
PHP: 7.3.20
Disabled: NONE
Upload Files
File: /home4/cca63905/public_html/nueva/modules/ps_eventbus/upgrade/Upgrade-3.2.1.php
<?php

/**
 * @return bool
 */
function upgrade_module_3_2_1()
{
    $db = Db::getInstance();

    // Delete all entries with type "cart_rules" from eventbus_incremental_sync
    $db->delete('eventbus_incremental_sync', '`type` = "cart_rules"');

    // reset full sync for cart_rules
    $db->update(
        'eventbus_type_sync',
        [
            'offset' => 0,
            'full_sync_finished' => 0,
        ],
        '`type` = "cart_rules"'
    );

    return true;
}