File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/Sales/sql/sales_setup Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 26
26
/** @var \Magento\Framework\DB\Adapter\AdapterInterface $connection */
27
27
$ connection = $ this ->getConnection ();
28
28
foreach ($ tables as $ table ) {
29
- $ columns = $ connection ->describeTable ($ table );
29
+ $ columns = $ connection ->describeTable ($ this -> getTable ( $ table) );
30
30
if (isset ($ columns ['created_at ' ])) {
31
31
$ createdAt = $ columns ['created_at ' ];
32
32
$ createdAt ['DEFAULT ' ] = Table::TIMESTAMP_INIT ;
33
33
$ createdAt ['TYPE ' ] = Table::TYPE_TIMESTAMP ;
34
- $ connection ->modifyColumn ($ table , 'created_at ' , $ createdAt );
34
+ $ connection ->modifyColumn ($ this -> getTable ( $ table) , 'created_at ' , $ createdAt );
35
35
}
36
36
if (isset ($ columns ['updated_at ' ])) {
37
37
$ updatedAt = $ columns ['updated_at ' ];
38
38
$ updatedAt ['DEFAULT ' ] = Table::TIMESTAMP_UPDATE ;
39
39
$ updatedAt ['TYPE ' ] = Table::TYPE_TIMESTAMP ;
40
- $ connection ->modifyColumn ($ table , 'updated_at ' , $ updatedAt );
40
+ $ connection ->modifyColumn ($ this -> getTable ( $ table) , 'updated_at ' , $ updatedAt );
41
41
}
42
42
}
You can’t perform that action at this time.
0 commit comments