Browse Source

fix: upgrader - column name population

pull/7304/head
Pranav C 10 months ago
parent
commit
ab7116ab70
  1. 8
      packages/nocodb/src/version-upgrader/ncXcdbCreatedAndUpdatedTimeUpgrader.ts

8
packages/nocodb/src/version-upgrader/ncXcdbCreatedAndUpdatedTimeUpgrader.ts

@ -108,11 +108,11 @@ async function upgradeModels({
...(await getColumnPropsFromUIDT( ...(await getColumnPropsFromUIDT(
{ {
uidt: UITypes.CreatedTime, uidt: UITypes.CreatedTime,
column_name: getUniqueColumnName(columns, 'created_at'),
title: getUniqueColumnAliasName(columns, 'Created At'),
}, },
source, source,
)), )),
column_name: getUniqueColumnName(columns, 'created_at'),
title: getUniqueColumnAliasName(columns, 'Created At'),
system: true, system: true,
altered: Altered.NEW_COLUMN, altered: Altered.NEW_COLUMN,
}); });
@ -123,12 +123,12 @@ async function upgradeModels({
...(await getColumnPropsFromUIDT( ...(await getColumnPropsFromUIDT(
{ {
uidt: UITypes.LastModifiedTime, uidt: UITypes.LastModifiedTime,
column_name: getUniqueColumnName(columns, 'updated_at'),
title: getUniqueColumnAliasName(columns, 'Updated At'),
cdf: null, cdf: null,
}, },
source, source,
)), )),
column_name: getUniqueColumnName(columns, 'updated_at'),
title: getUniqueColumnAliasName(columns, 'Updated At'),
system: true, system: true,
altered: Altered.NEW_COLUMN, altered: Altered.NEW_COLUMN,
}); });

Loading…
Cancel
Save