File tree Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © 2015 Magento. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+ namespace Magento \Quote \Setup ;
7
+
8
+ use Magento \Framework \Setup \UpgradeSchemaInterface ;
9
+ use Magento \Framework \Setup \ModuleContextInterface ;
10
+ use Magento \Framework \Setup \SchemaSetupInterface ;
11
+
12
+ /**
13
+ * Upgrade the Catalog module DB scheme
14
+ */
15
+ class UpgradeSchema implements UpgradeSchemaInterface
16
+ {
17
+ /**
18
+ * {@inheritdoc}
19
+ */
20
+ public function upgrade (SchemaSetupInterface $ setup , ModuleContextInterface $ context )
21
+ {
22
+ $ setup ->startSetup ();
23
+
24
+ if (version_compare ($ context ->getVersion (), '2.0.1 ' , '< ' )) {
25
+ $ setup ->getConnection ()->addIndex (
26
+ $ setup ->getTable ('quote_id_mask ' ),
27
+ $ setup ->getIdxName ('quote_id_mask ' , ['masked_id ' ]),
28
+ ['masked_id ' ]
29
+ );
30
+ }
31
+
32
+ $ setup ->endSetup ();
33
+ }
34
+ }
Original file line number Diff line number Diff line change 6
6
*/
7
7
-->
8
8
<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:framework:Module/etc/module.xsd" >
9
- <module name =" Magento_Quote" setup_version =" 2.0.0 " >
9
+ <module name =" Magento_Quote" setup_version =" 2.0.1 " >
10
10
</module >
11
11
</config >
You can’t perform that action at this time.
0 commit comments