handler anonymousPrimaryKey for deploy

This commit is contained in:
SPRINX0\prochazka
2024-10-29 14:38:22 +01:00
parent 2704825d03
commit bc4a595815

View File

@@ -324,7 +324,7 @@ export class SqlDumper implements AlterProcessor {
createTablePrimaryKeyCore(table: TableInfo) {
if (table.primaryKey) {
this.put(',&n');
if (table.primaryKey.constraintName) {
if (table.primaryKey.constraintName && !this.dialect.anonymousPrimaryKey) {
this.put('^constraint %i', table.primaryKey.constraintName);
}
this.put(