1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

perf: hash for foreign key default names

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

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: '',