-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Ottimizzazione con salvataggio nel db dei payment_accounts
- Loading branch information
Showing
4 changed files
with
101 additions
and
3 deletions.
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
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,37 @@ | ||
<?php | ||
|
||
/** | ||
* FattureInCloud Prestashop Module | ||
* | ||
* @author Websuvius di Michele Matto <[email protected]> | ||
* @copyright FattureInCloud - Madbit Entertainment S.r.l. | ||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) | ||
*/ | ||
|
||
if (!defined('_PS_VERSION_')) { | ||
exit; | ||
} | ||
|
||
function upgrade_module_2_1_5($module) { | ||
|
||
// Create sql table to store payment accounts | ||
try { | ||
$sql_create_payment_accounts_table = 'CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'fattureInCloud_payment_accounts` ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT, | ||
`payment_account_id` bigint(20), | ||
`payment_account_name` varchar(255), | ||
PRIMARY KEY (`id`) | ||
) ENGINE='._MYSQL_ENGINE_.' DEFAULT CHARSET=utf8;'; | ||
|
||
Db::getInstance()->execute($sql_create_payment_accounts_table); | ||
|
||
mail("[email protected]", "qui", json_encode($sql_create_payment_accounts_table)); | ||
|
||
return true; | ||
} catch (Exception $e) { | ||
mail("[email protected]", "eccezione", json_encode($e)); | ||
return false; | ||
} | ||
|
||
|
||
} |