File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
lib/internal/Magento/Framework/Setup/Declaration/Schema Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public function create(array $data)
63
63
}
64
64
65
65
if (isset ($ data ['default ' ])) {
66
- $ data ['default ' ] = (int ) $ data ['default ' ];
66
+ $ data ['default ' ] = $ data [ ' default ' ] !== ' null ' ? (int ) $ data ['default ' ] : null ;
67
67
}
68
68
69
69
return $ this ->objectManager ->create ($ this ->className , $ data );
Original file line number Diff line number Diff line change 17
17
Size is 4 bytes.
18
18
</xs : documentation >
19
19
</xs : annotation >
20
- <xs : attribute name =" default" type =" xs:integer" />
20
+ <xs : attribute name =" default" >
21
+ <xs : simpleType >
22
+ <xs : restriction base =" xs:string" >
23
+ <xs : pattern value =" \d+|null" />
24
+ </xs : restriction >
25
+ </xs : simpleType >
26
+ </xs : attribute >
21
27
<xs : attribute name =" padding" >
22
28
<xs : annotation >
23
29
<xs : documentation >
You can’t perform that action at this time.
0 commit comments