This commit is contained in:
2025-04-01 00:38:54 +02:00
parent d4d4c0c09d
commit 87da06293a
22351 changed files with 5168854 additions and 7538 deletions

View File

@@ -0,0 +1,32 @@
<?php
/**
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* Upgrades module.
*
* @return bool
*/
function upgrade_module_1_3_7()
{
$p24OrdersTable = addslashes(_DB_PREFIX_ . Przelewy24Order::TABLE);
$sql = '
CREATE TABLE IF NOT EXISTS `' . $p24OrdersTable . '` (
`p24_order_id` INT NOT NULL PRIMARY KEY,
`pshop_order_id` INT NOT NULL,
`p24_session_id` VARCHAR(100) NOT NULL
);';
$success = Db::getInstance()->Execute($sql);
if (!$success) {
/* This is the best way to communicate problem with update. */
throw new Exception('Cannot update module Przelewy24 to version 1.3.38.');
}
}