Browse Source

fix(nocodb): randomID doesnt take parameter

pull/5903/head
Wing-Kam Wong 2 years ago
parent
commit
46e5da4870
  1. 2
      packages/nocodb/src/helpers/columnHelpers.ts

2
packages/nocodb/src/helpers/columnHelpers.ts

@ -203,6 +203,6 @@ export const generateFkName = (parent: TableType, child: TableType) => {
.replace(/\W+/g, '_')
.slice(0, 10)}_${child.table_name
.replace(/\W+/g, '_')
.slice(0, 10)}_${randomID(15)}`;
.slice(0, 10)}_${randomID()}`;
return constraintName;
};

Loading…
Cancel
Save