We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 989bdcd commit a0fb1adCopy full SHA for a0fb1ad
lib/internal/Magento/Framework/Setup/Declaration/Schema/Db/SchemaBuilder.php
@@ -120,14 +120,10 @@ public function build(Schema $schema)
120
]
121
);
122
123
- $isJsonType = false;
124
- if (count($tablesWithJsonTypeField) > 0 && isset($tablesWithJsonTypeField[$tableName])) {
125
- $isJsonType = true;
126
- }
127
-
128
// Process columns
129
foreach ($columnsData as $columnData) {
130
- if ($isJsonType && $tablesWithJsonTypeField[$tableName] == $columnData['name']) {
+ if (isset($tablesWithJsonTypeField[$tableName])
+ && $tablesWithJsonTypeField[$tableName] === $columnData['name']) {
131
$columnData['type'] = 'json';
132
}
133
$columnData['table'] = $table;
0 commit comments