-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
24ec54e
commit 76b43da
Showing
10 changed files
with
118 additions
and
7 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
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,52 @@ | ||
<?php | ||
/** | ||
* (c) shopware AG <info@shopware.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace SwagPaymentPayPalUnified\Setup\Versions; | ||
|
||
use Doctrine\DBAL\Connection; | ||
use SwagPaymentPayPalUnified\Setup\ColumnService; | ||
|
||
class UpdateTo609 | ||
{ | ||
/** | ||
* @var Connection | ||
*/ | ||
private $connection; | ||
|
||
/** | ||
* @var ColumnService | ||
*/ | ||
private $columnService; | ||
|
||
public function __construct(Connection $connection, ColumnService $columnService) | ||
{ | ||
$this->connection = $connection; | ||
$this->columnService = $columnService; | ||
} | ||
|
||
/** | ||
* @return void | ||
*/ | ||
public function update() | ||
{ | ||
$this->addAdvancedCreditDebitCardSettingWithAuthenticationSystemOnly(); | ||
} | ||
|
||
/** | ||
* @return void | ||
*/ | ||
private function addAdvancedCreditDebitCardSettingWithAuthenticationSystemOnly() | ||
{ | ||
if (!$this->columnService->checkIfColumnExist('swag_payment_paypal_unified_settings_advanced_credit_debit_card', 'with_authentication_system_only')) { | ||
$this->connection->executeQuery( | ||
'ALTER TABLE `swag_payment_paypal_unified_settings_advanced_credit_debit_card` | ||
ADD `with_authentication_system_only` TINYINT(1) NOT NULL default 1;' | ||
); | ||
} | ||
} | ||
} |
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