Skip to content

Commit

Permalink
Merge pull request #219 from Invertus/SL/logs-search-error
Browse files Browse the repository at this point in the history
Logs search fix
  • Loading branch information
MarijusCoding authored Oct 30, 2024
2 parents 891230a + 94bb769 commit 12af95b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/Entity/SaferPayLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ class SaferPayLog extends ObjectModel

public $id_shop;

public $message;

public $request;

public $response;
Expand All @@ -49,7 +47,6 @@ class SaferPayLog extends ObjectModel
'fields' => [
'id_log' => ['type' => self::TYPE_INT, 'validate' => 'isInt'],
'id_shop' => ['type' => self::TYPE_INT, 'validate' => 'isInt'],
'message' => ['type' => self::TYPE_STRING, 'validate' => 'isString'],
'request' => ['type' => self::TYPE_STRING, 'validate' => 'isString'],
'response' => ['type' => self::TYPE_STRING, 'validate' => 'isString'],
'context' => ['type' => self::TYPE_STRING, 'validate' => 'isString'],
Expand Down
1 change: 0 additions & 1 deletion src/Install/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ private function installSaferPayLog()
`id_saferpay_log` INTEGER(10) unsigned NOT NULL AUTO_INCREMENT,
`id_log` INT(10) NOT NULL,
`id_shop` INT(10) NOT NULL DEFAULT ' . (int) Configuration::get('PS_SHOP_DEFAULT') . ',
`message` TEXT DEFAULT NULL,
`request` MEDIUMTEXT DEFAULT NULL,
`response` MEDIUMTEXT DEFAULT NULL,
`context` TEXT DEFAULT NULL,
Expand Down
1 change: 1 addition & 0 deletions upgrade/install-1.2.4.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function upgrade_module_1_2_4(SaferPayOfficial $module)
CHANGE `payload` `request` TEXT,
ADD COLUMN `response` MEDIUMTEXT DEFAULT NULL,
ADD COLUMN `context` MEDIUMTEXT DEFAULT NULL,
DROP COLUMN `message`,
DROP PRIMARY KEY,
ADD PRIMARY KEY (`id_saferpay_log`, `id_log`, `id_shop`),
ADD INDEX (`id_log`);'
Expand Down

0 comments on commit 12af95b

Please sign in to comment.