File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -2265,7 +2265,6 @@ protected function swagger($settings) {
2265
2265
$ table_fields [$ table ['name ' ]][$ row [0 ]]->required = strtolower ($ row [2 ])=='no ' && $ row [1 ]===null ;
2266
2266
$ table_fields [$ table ['name ' ]][$ row [0 ]]->{'x-nullable ' } = strtolower ($ row [2 ])=='yes ' ;
2267
2267
$ table_fields [$ table ['name ' ]][$ row [0 ]]->{'x-dbtype ' } = $ row [3 ];
2268
- $ table_fields [$ table ['name ' ]][$ row [0 ]]->maxLength = $ row [4 ];
2269
2268
if ($ this ->db ->isNumericType ($ table_fields [$ table ['name ' ]][$ row [0 ]])) {
2270
2269
if (strpos (strtolower ($ table_fields [$ table ['name ' ]][$ row [0 ]]->{'x-dbtype ' }),'int ' )!==false ) {
2271
2270
$ table_fields [$ table ['name ' ]][$ row [0 ]]->type = 'integer ' ;
@@ -2274,7 +2273,6 @@ protected function swagger($settings) {
2274
2273
$ table_fields [$ table ['name ' ]][$ row [0 ]]->type = 'number ' ;
2275
2274
if ($ row [1 ]!==null ) $ table_fields [$ table ['name ' ]][$ row [0 ]]->default = (float )$ row [1 ];
2276
2275
}
2277
-
2278
2276
} else {
2279
2277
if ($ this ->db ->isBinaryType ($ table_fields [$ table ['name ' ]][$ row [0 ]])) {
2280
2278
$ table_fields [$ table ['name ' ]][$ row [0 ]]->format = 'byte ' ;
@@ -2285,6 +2283,7 @@ protected function swagger($settings) {
2285
2283
}
2286
2284
$ table_fields [$ table ['name ' ]][$ row [0 ]]->type = 'string ' ;
2287
2285
if ($ row [1 ]!==null ) $ table_fields [$ table ['name ' ]][$ row [0 ]]->default = $ row [1 ];
2286
+ if ($ row [4 ]!==null ) $ table_fields [$ table ['name ' ]][$ row [0 ]]->maxLength = (int )$ row [4 ];
2288
2287
}
2289
2288
}
2290
2289
You can’t perform that action at this time.
0 commit comments