perf: hash for foreign key default names

This commit is contained in:
Fabio Di Stasio 2021-12-23 11:47:17 +01:00
parent b0d1f115c9
commit 48c3e6afc4
2 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@
"cross-env": "^7.0.2",
"css-loader": "^6.5.0",
"electron": "^16.0.1",
"electron-builder": "^22.14.10",
"electron-builder": "^22.14.11",
"electron-devtools-installer": "^3.2.0",
"eslint": "^7.32.0",
"eslint-config-standard": "^16.0.3",

View File

@ -289,7 +289,7 @@ export default {
addForeign () {
this.foreignProxy = [...this.foreignProxy, {
_antares_id: uidGen(),
constraintName: `FK_${this.foreignProxy.length + 1}`,
constraintName: `FK_${uidGen()}`,
refSchema: this.schema,
table: this.table,
refTable: '',