File tree Expand file tree Collapse file tree 2 files changed +48
-1
lines changed Expand file tree Collapse file tree 2 files changed +48
-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
+
7
+ namespace Magento \User \Setup ;
8
+
9
+ use Magento \Framework \DB \Ddl \Table ;
10
+ use Magento \Framework \Setup \UpgradeSchemaInterface ;
11
+ use Magento \Framework \Setup \ModuleContextInterface ;
12
+ use Magento \Framework \Setup \SchemaSetupInterface ;
13
+
14
+ /**
15
+ * @codeCoverageIgnore
16
+ */
17
+ class UpgradeSchema implements UpgradeSchemaInterface
18
+ {
19
+ /**
20
+ * {@inheritdoc}
21
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
22
+ * @SuppressWarnings(PHPMD.CyclomaticComplexity)
23
+ * @SuppressWarnings(PHPMD.NPathComplexity)
24
+ */
25
+ public function upgrade (SchemaSetupInterface $ setup , ModuleContextInterface $ context )
26
+ {
27
+ $ installer = $ setup ;
28
+ $ connection = $ installer ->getConnection ();
29
+ if (version_compare ($ context ->getVersion (), '2.0.1 ' ) < 0 ) {
30
+ /**
31
+ * Modifying length of 'interface_locale' column of admin_user table.
32
+ */
33
+ $ table = $ setup ->getTable ('admin_user ' );
34
+ $ connection ->modifyColumn (
35
+ $ table ,
36
+ 'interface_locale ' ,
37
+ [
38
+ 'type ' => Table::TYPE_TEXT ,
39
+ 'length ' => 16 ,
40
+ 'nullable ' => false ,
41
+ 'default ' => 'en_US ' ,
42
+ 'comment ' => 'Backend interface locale ' ,
43
+ ]
44
+ );
45
+ }
46
+ }
47
+ }
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 =" ../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd" >
9
- <module name =" Magento_User" setup_version =" 2.0.0 " >
9
+ <module name =" Magento_User" setup_version =" 2.0.1 " >
10
10
<sequence >
11
11
<module name =" Magento_Backend" />
12
12
</sequence >
You can’t perform that action at this time.
0 commit comments