File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -187,16 +187,20 @@ public function getColumns($table)
187
187
foreach ($ stats as $ stat ) {
188
188
sort ($ stat ->types );
189
189
$ type = implode (', ' , $ stat ->types );
190
+ $ name = $ stat ->_id ;
191
+ if ($ name === '_id ' ) {
192
+ $ name = 'id ' ;
193
+ }
190
194
$ columns [] = [
191
- 'name ' => $ stat -> _id ,
195
+ 'name ' => $ name ,
192
196
'type_name ' => $ type ,
193
197
'type ' => $ type ,
194
198
'collation ' => null ,
195
- 'nullable ' => $ stat -> _id !== '_id ' ,
199
+ 'nullable ' => $ name !== 'id ' ,
196
200
'default ' => null ,
197
201
'auto_increment ' => false ,
198
202
'comment ' => sprintf ('%d occurrences ' , $ stat ->total ),
199
- 'generation ' => $ stat -> _id === '_id ' ? ['type ' => 'objectId ' , 'expression ' => null ] : null ,
203
+ 'generation ' => $ name === 'id ' ? ['type ' => 'objectId ' , 'expression ' => null ] : null ,
200
204
];
201
205
}
202
206
You can’t perform that action at this time.
0 commit comments