File tree Expand file tree Collapse file tree 1 file changed +2
-20
lines changed
app/code/Magento/Authorization/sql/authorization_setup Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Original file line number Diff line number Diff line change 8
8
9
9
$ installer ->startSetup ();
10
10
11
- if ($ installer ->getConnection ()->isTableExists ($ installer ->getTable ('admin_role ' ))) {
12
- /**
13
- * Rename existing 'admin_role' table into 'authorization_role' (to avoid forcing Magento re-installation)
14
- * TODO: This conditional logic can be removed some time after pull request is delivered to the mainline
15
- */
16
- $ installer ->getConnection ()->renameTable (
17
- $ installer ->getTable ('admin_role ' ),
18
- $ installer ->getTable ('authorization_role ' )
19
- );
20
- } elseif (!$ installer ->getConnection ()->isTableExists ($ installer ->getTable ('authorization_role ' ))) {
11
+ if (!$ installer ->getConnection ()->isTableExists ($ installer ->getTable ('authorization_role ' ))) {
21
12
/**
22
13
* Create table 'authorization_role'
23
14
*/
83
74
$ installer ->getConnection ()->createTable ($ table );
84
75
}
85
76
86
- if ($ installer ->getConnection ()->isTableExists ($ installer ->getTable ('admin_rule ' ))) {
87
- /**
88
- * Rename existing 'admin_rule' table into 'authorization_rule' (to avoid forcing Magento re-installation)
89
- * TODO: This conditional logic can be removed some time after pull request is delivered to the mainline
90
- */
91
- $ installer ->getConnection ()->renameTable (
92
- $ installer ->getTable ('admin_rule ' ),
93
- $ installer ->getTable ('authorization_rule ' )
94
- );
95
- } elseif (!$ installer ->getConnection ()->isTableExists ($ installer ->getTable ('authorization_rule ' ))) {
77
+ if (!$ installer ->getConnection ()->isTableExists ($ installer ->getTable ('authorization_rule ' ))) {
96
78
/**
97
79
* Create table 'authorization_rule'
98
80
*/
You can’t perform that action at this time.
0 commit comments