-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔃 [EngCom] Public Pull Requests - 2.3-develop
Accepted Public Pull Requests: - #12937: [Backport 2.3-develop] Handle multiple errors in customer address validation when shown in adminhtml customer edit page (by @adrian-martinez-interactiv4) - magento-engcom/magento2ce#1150: magento/magento2#NONE: Fix vault_payment_token install script type where column defaults were not set (PR #12965 forwardport 2.3) (by @p-bystritsky) - magento-engcom/import-export-improvements#95: MAGETWO-49985: product custom options export in reverse order fixed (by @umarch-rltsquare)
- Loading branch information
Showing
5 changed files
with
72 additions
and
13 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,51 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
namespace Magento\Vault\Setup; | ||
|
||
use Magento\Framework\Setup\ModuleContextInterface; | ||
use Magento\Framework\Setup\SchemaSetupInterface; | ||
use Magento\Framework\Setup\UpgradeSchemaInterface; | ||
use Magento\Framework\DB\Ddl\Table; | ||
|
||
/** | ||
* Upgrade the Vault module DB scheme | ||
*/ | ||
class UpgradeSchema implements UpgradeSchemaInterface | ||
{ | ||
/** | ||
* @inheritdoc | ||
*/ | ||
public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $context) | ||
{ | ||
$setup->startSetup(); | ||
if (version_compare($context->getVersion(), '2.0.3', '<')) { | ||
$this->upgradeTokenTableDefaultValues($setup); | ||
} | ||
$setup->endSetup(); | ||
} | ||
|
||
/** | ||
* @param SchemaSetupInterface $setup | ||
* @return void | ||
*/ | ||
private function upgradeTokenTableDefaultValues(SchemaSetupInterface $setup) | ||
{ | ||
$columns = ['is_active', 'is_visible']; | ||
|
||
foreach ($columns as $columnName) { | ||
$setup->getConnection()->modifyColumn( | ||
$setup->getTable(InstallSchema::PAYMENT_TOKEN_TABLE), | ||
$columnName, | ||
[ | ||
'type' => Table::TYPE_BOOLEAN, | ||
'nullable' => false, | ||
'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