File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
lib/internal/Magento/Framework/Setup/Declaration/Schema/Db Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -84,10 +84,12 @@ public function build(Schema $schema)
84
84
{
85
85
$ data = $ this ->readerComposite ->read (FileResolverByModule::ALL_MODULES );
86
86
$ tablesWithJsonTypeField = [];
87
- foreach ($ data ['table ' ] as $ keyTable => $ tableColumns ) {
88
- foreach ($ tableColumns ['column ' ] as $ keyColumn => $ columnData ) {
89
- if ($ columnData ['type ' ] == 'json ' ) {
90
- $ tablesWithJsonTypeField [$ keyTable ] = $ keyColumn ;
87
+ if (isset ($ data ['table ' ])) {
88
+ foreach ($ data ['table ' ] as $ keyTable => $ tableColumns ) {
89
+ foreach ($ tableColumns ['column ' ] as $ keyColumn => $ columnData ) {
90
+ if ($ columnData ['type ' ] == 'json ' ) {
91
+ $ tablesWithJsonTypeField [$ keyTable ] = $ keyColumn ;
92
+ }
91
93
}
92
94
}
93
95
}
You can’t perform that action at this time.
0 commit comments