Skip to content

Commit a0fb1ad

Browse files
committed
AC-11654::Integration test failing testDbSchemaUpToDate due to JSON column type
1 parent 989bdcd commit a0fb1ad

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/internal/Magento/Framework/Setup/Declaration/Schema/Db/SchemaBuilder.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,10 @@ public function build(Schema $schema)
120120
]
121121
);
122122

123-
$isJsonType = false;
124-
if (count($tablesWithJsonTypeField) > 0 && isset($tablesWithJsonTypeField[$tableName])) {
125-
$isJsonType = true;
126-
}
127-
128123
// Process columns
129124
foreach ($columnsData as $columnData) {
130-
if ($isJsonType && $tablesWithJsonTypeField[$tableName] == $columnData['name']) {
125+
if (isset($tablesWithJsonTypeField[$tableName])
126+
&& $tablesWithJsonTypeField[$tableName] === $columnData['name']) {
131127
$columnData['type'] = 'json';
132128
}
133129
$columnData['table'] = $table;

0 commit comments

Comments
 (0)