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)
8484 {
8585 $ data = $ this ->readerComposite ->read (FileResolverByModule::ALL_MODULES );
8686 $ 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+ }
9193 }
9294 }
9395 }
You can’t perform that action at this time.
0 commit comments