Skip to content

Commit 80fe7e3

Browse files
author
Olexandr Lysenko
committed
MAGETWO-33221: Date created column is not populated in invoices and credit memo grid
1 parent 7c2cff2 commit 80fe7e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/Sales/sql/sales_setup/upgrade-2.0.0-2.0.1.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@
2626
/** @var \Magento\Framework\DB\Adapter\AdapterInterface $connection */
2727
$connection = $this->getConnection();
2828
foreach ($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
}

0 commit comments

Comments
 (0)