-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 in DEV-MO/shopware5-module from release/5.2.4 …
…to master * commit 'd8506fc23650b6f5d2d6a4e9fe7a836b708d0174': Update Readme for correct version and changelog Change version [SHPWR-359] Update changelog in README file [SHPWR-347] round item prices for b2b shops [SHPWR-336] Fix extra indents of code and PSR2 formatting task/SHPWR-346_put-util-in-ps4-namespace [SHPWR-347] fix rounded price discrepancies [MGNT-353] disable error notifications if payment changed [SHPWR-359] update readme file [SHPWR-356] wrap logger component into service
- Loading branch information
Showing
71 changed files
with
1,594 additions
and
1,777 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,35 +1,29 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: eiriarte-mendez | ||
* Date: 12.06.18 | ||
* Time: 11:01 | ||
*/ | ||
|
||
namespace RpayRatePay\Bootstrapping\Database; | ||
|
||
class CreateConfigInstallmentTable | ||
{ | ||
protected function getQuery() | ||
{ | ||
$query = "CREATE TABLE IF NOT EXISTS `rpay_ratepay_config_installment` (" . | ||
"`rpay_id` int(2) NOT NULL," . | ||
"`month-allowed` varchar(255) NOT NULL," . | ||
"`payment-firstday` varchar(10) NOT NULL," . | ||
"`interestrate-default` float NOT NULL," . | ||
"`rate-min-normal` float NOT NULL," . | ||
"PRIMARY KEY (`rpay_id`)" . | ||
") ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"; | ||
$query = 'CREATE TABLE IF NOT EXISTS `rpay_ratepay_config_installment` (' . | ||
'`rpay_id` int(2) NOT NULL,' . | ||
'`month-allowed` varchar(255) NOT NULL,' . | ||
'`payment-firstday` varchar(10) NOT NULL,' . | ||
'`interestrate-default` float NOT NULL,' . | ||
'`rate-min-normal` float NOT NULL,' . | ||
'PRIMARY KEY (`rpay_id`)' . | ||
') ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci'; | ||
return $query; | ||
} | ||
|
||
|
||
/** | ||
* @param Enlight_Components_Db_Adapter_Pdo_Mysql $database | ||
* @throws Zend_Db_Adapter_Exception | ||
*/ | ||
public function __invoke($database) | ||
{ | ||
$database->query("DROP TABLE IF EXISTS `rpay_ratepay_config_installment`"); | ||
$database->query('DROP TABLE IF EXISTS `rpay_ratepay_config_installment`'); | ||
$database->query($this->getQuery()); | ||
} | ||
} | ||
} |
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
Oops, something went wrong.