-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump to v1.0.1, with SQL update script in case of ancien fresh instal…
…l with missing table
- Loading branch information
Showing
2 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
/** | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Academic Free License (AFL 3.0) | ||
* that is bundled with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://opensource.org/licenses/afl-3.0.php | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to [email protected] so we can send you a copy immediately. | ||
* | ||
* DISCLAIMER | ||
* | ||
* Do not edit or add to this file if you wish to upgrade your module to newer | ||
* versions in the future. | ||
* | ||
* @author MyFlyingBox <[email protected]> | ||
* @copyright 2017 MyFlyingBox | ||
* | ||
* @version 1.0 | ||
* | ||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) | ||
*/ | ||
|
||
if (!defined('_PS_VERSION_')) { | ||
exit; | ||
} | ||
|
||
function upgrade_module_1_0_1($module) | ||
{ | ||
# This update was forgotten in the SQL fresh install script on 0.0.24 and 1.0.0. | ||
Db::getInstance()->execute( | ||
'CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'lce_cart_selected_relay` ( | ||
`id_cart` int(10) NOT null, | ||
`relay_code` varchar(10) NOT null, | ||
PRIMARY KEY (`id_cart`) | ||
) ENGINE='._MYSQL_ENGINE_.' DEFAULT CHARSET=utf8;' | ||
); | ||
|
||
return true; | ||
} |