Browse Source

fix: Associative table name correction

closes #349

Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
pull/153/head
Pranav C 3 years ago
parent
commit
2fec392e11
  1. 2
      packages/nocodb/src/lib/noco/meta/NcMetaMgr.ts

2
packages/nocodb/src/lib/noco/meta/NcMetaMgr.ts

@ -2374,7 +2374,7 @@ export default class NcMetaMgr {
}); });
// todo: associative table naming // todo: associative table naming
const aTn = `${this.projectConfigs[projectId]?.prefix ?? ''}_nc_m2m_${parentMeta.tn}_${childMeta.tn}}`; const aTn = `${this.projectConfigs[projectId]?.prefix ?? ''}_nc_m2m_${parentMeta.tn}_${childMeta.tn}`;
const aTnAlias = `m2m${parentMeta._tn}_${childMeta._tn}`; const aTnAlias = `m2m${parentMeta._tn}_${childMeta._tn}`;
const out = await this.projectMgr.getSqlMgr({id: projectId}).handleRequest('tableCreate', { const out = await this.projectMgr.getSqlMgr({id: projectId}).handleRequest('tableCreate', {

Loading…
Cancel
Save