|
|
@ -180,7 +180,7 @@ export default async function(this: BaseApiBuilder<any> | any) { |
|
|
|
const oldColumn = oldMeta.columns.find(c => c.cn === change?.cn); |
|
|
|
const oldColumn = oldMeta.columns.find(c => c.cn === change?.cn); |
|
|
|
|
|
|
|
|
|
|
|
const { |
|
|
|
const { |
|
|
|
// virtualViews,
|
|
|
|
virtualViews, |
|
|
|
virtualViewsParamsArr |
|
|
|
virtualViewsParamsArr |
|
|
|
// @ts-ignore
|
|
|
|
// @ts-ignore
|
|
|
|
} = await this.extractSharedAndVirtualViewsParams(tn); |
|
|
|
} = await this.extractSharedAndVirtualViewsParams(tn); |
|
|
@ -256,6 +256,14 @@ export default async function(this: BaseApiBuilder<any> | any) { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// todo: enable
|
|
|
|
|
|
|
|
await this.updateSharedAndVirtualViewsParams( |
|
|
|
|
|
|
|
virtualViewsParamsArr, |
|
|
|
|
|
|
|
virtualViews |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await this.metaQueryParamsUpdate(queryParams, tn); |
|
|
|
|
|
|
|
|
|
|
|
// Delete lookup columns mapping to current column
|
|
|
|
// Delete lookup columns mapping to current column
|
|
|
|
// update column name in belongs to
|
|
|
|
// update column name in belongs to
|
|
|
|
if (oldMeta.belongsTo?.length) { |
|
|
|
if (oldMeta.belongsTo?.length) { |
|
|
@ -354,7 +362,7 @@ export default async function(this: BaseApiBuilder<any> | any) { |
|
|
|
)?._cn; |
|
|
|
)?._cn; |
|
|
|
|
|
|
|
|
|
|
|
// virtual views param update
|
|
|
|
// virtual views param update
|
|
|
|
for (const qp of virtualViewsParamsArr) { |
|
|
|
for (const qp of [virtualViewsParamsArr]) { |
|
|
|
// @ts-ignore
|
|
|
|
// @ts-ignore
|
|
|
|
const { |
|
|
|
const { |
|
|
|
showFields = {}, |
|
|
|
showFields = {}, |
|
|
|