mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 12:56:00 +00:00
handler anonymousPrimaryKey for deploy
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user