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 2626/** @var \Magento\Framework\DB\Adapter\AdapterInterface $connection */
2727$ connection = $ this ->getConnection ();
2828foreach ($ tables as $ table ) {
29- $ columns = $ connection ->describeTable ($ table );
29+ $ columns = $ connection ->describeTable ($ this -> getTable ( $ table) );
3030 if (isset ($ columns ['created_at ' ])) {
3131 $ createdAt = $ columns ['created_at ' ];
3232 $ createdAt ['DEFAULT ' ] = Table::TIMESTAMP_INIT ;
3333 $ createdAt ['TYPE ' ] = Table::TYPE_TIMESTAMP ;
34- $ connection ->modifyColumn ($ table , 'created_at ' , $ createdAt );
34+ $ connection ->modifyColumn ($ this -> getTable ( $ table) , 'created_at ' , $ createdAt );
3535 }
3636 if (isset ($ columns ['updated_at ' ])) {
3737 $ updatedAt = $ columns ['updated_at ' ];
3838 $ updatedAt ['DEFAULT ' ] = Table::TIMESTAMP_UPDATE ;
3939 $ updatedAt ['TYPE ' ] = Table::TYPE_TIMESTAMP ;
40- $ connection ->modifyColumn ($ table , 'updated_at ' , $ updatedAt );
40+ $ connection ->modifyColumn ($ this -> getTable ( $ table) , 'updated_at ' , $ updatedAt );
4141 }
4242}
You can’t perform that action at this time.
0 commit comments