-
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 branch 'release/5.2.4' into task/SHPWR-346_put-util-in-ps4-name…
…space # Conflicts: # Bootstrapping/DatabaseSetup.php # Bootstrapping/Events/BackendOrderControllerSubscriber.php
- Loading branch information
Showing
63 changed files
with
791 additions
and
1,051 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
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
Oops, something went wrong.