Skip to content

Commit 89635a6

Browse files
authored
DB upgrade fix. (#479)
1 parent abbc8e0 commit 89635a6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Model/System/Message/TableSetupNotification.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ public function isDisplayed()
9494
$name = $singleColumnDescription['COLUMN_NAME'];
9595
foreach($singleColumnDescription as $key => $value)
9696
{
97-
if($tableDescription[$name][$key] !== $value)
97+
if (isset($tableDescription[$name]) === false or
98+
isset($tableDescription[$name][$key]) === false or
99+
$tableDescription[$name][$key] !== $value)
98100
{
99101
return true;
100102
}

Setup/UpgradeSchema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function upgrade(
7575
}
7676
}
7777

78-
$tableName = $setup->getTable('sales_order');
78+
$tableName = $setup->getTable(OrderLink::TABLE_NAME);
7979
if ($setup->getConnection()->isTableExists($tableName) == true)
8080
{
8181
$setup->getConnection()->addColumn(

0 commit comments

Comments
 (0)