Skip to content

Commit

Permalink
fix: save several days in the Exception schedule (#59)
Browse files Browse the repository at this point in the history
* fix: save several days in the Exception schedule
  • Loading branch information
RichardPerdaan authored and EdieLemoine committed Nov 15, 2021
1 parent cb6a8bf commit 5bdae81
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/CreateCarrierConfigurationTableMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static function up(): bool
`id_configuration` int(11) NOT NULL AUTO_INCREMENT,
`id_carrier` int(11) NOT NULL,
`name` varchar(100) NOT NULL,
`value` varchar(100) NOT NULL,
`value` text NOT NULL,
PRIMARY KEY (`id_configuration`)
) ENGINE={ENGINE} DEFAULT CHARSET=utf8
SQL;
Expand Down
20 changes: 20 additions & 0 deletions upgrade/upgrade-1.4.0.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

use Gett\MyparcelBE\Constant;
use Gett\MyparcelBE\Database\Table;

/**
* @throws \PrestaShopDatabaseException
*/
function upgrade_module_1_4_0(MyParcelBE $module): bool
{
$carrierConfigurationTable = Table::withPrefix(Table::TABLE_CARRIER_CONFIGURATION);

$query = <<<SQL
ALTER TABLE $carrierConfigurationTable MODIFY value TEXT;
SQL;

Db::getInstance()->execute($query);

return true;
}

0 comments on commit 5bdae81

Please sign in to comment.