mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 05:43:58 +00:00
handler anonymousPrimaryKey for deploy
This commit is contained in:
@@ -324,7 +324,7 @@ export class SqlDumper implements AlterProcessor {
|
|||||||
createTablePrimaryKeyCore(table: TableInfo) {
|
createTablePrimaryKeyCore(table: TableInfo) {
|
||||||
if (table.primaryKey) {
|
if (table.primaryKey) {
|
||||||
this.put(',&n');
|
this.put(',&n');
|
||||||
if (table.primaryKey.constraintName) {
|
if (table.primaryKey.constraintName && !this.dialect.anonymousPrimaryKey) {
|
||||||
this.put('^constraint %i', table.primaryKey.constraintName);
|
this.put('^constraint %i', table.primaryKey.constraintName);
|
||||||
}
|
}
|
||||||
this.put(
|
this.put(
|
||||||
|
|||||||
Reference in New Issue
Block a user