Upgrade API & Schema dependencies (#13845)

Fixes #13837
This commit is contained in:
Rijk van Zanten
2022-06-10 15:59:52 -04:00
committed by GitHub
parent cb93edcccd
commit 6955c538a3
9 changed files with 4506 additions and 3804 deletions

View File

@@ -211,7 +211,6 @@ export class FieldsService {
try {
column = await this.schemaInspector.columnInfo(collection, field);
column.default_value = getDefaultValue(column);
} catch {
// Do nothing
}
@@ -220,12 +219,19 @@ export class FieldsService {
const type = getLocalType(column, fieldInfo);
const columnWithCastDefaultValue = column
? {
...column,
default_value: getDefaultValue(column),
}
: null;
const data = {
collection,
field,
type,
meta: fieldInfo || null,
schema: type === 'alias' ? null : column,
schema: type === 'alias' ? null : columnWithCastDefaultValue,
};
return data;