support for rename SQL object (mssql, postgres)

This commit is contained in:
Jan Prochazka
2024-10-31 10:48:32 +01:00
parent 2aed60390c
commit 81297383cb
12 changed files with 66 additions and 7 deletions

View File

@@ -10,6 +10,7 @@ export interface AlterProcessor {
changeConstraint(oldConstraint: ConstraintInfo, newConstraint: ConstraintInfo);
dropConstraint(constraint: ConstraintInfo);
renameTable(table: TableInfo, newName: string);
renameSqlObject(obj: SqlObjectInfo, newName: string);
renameColumn(column: ColumnInfo, newName: string);
renameConstraint(constraint: ConstraintInfo, newName: string);
recreateTable(oldTable: TableInfo, newTable: TableInfo);

View File

@@ -34,6 +34,7 @@ export interface SqlDialect {
dropUnique?: boolean;
createCheck?: boolean;
dropCheck?: boolean;
renameSqlObject?: boolean;
specificNullabilityImplementation?: boolean;
omitForeignKeys?: boolean;