Synchronization code

This commit is contained in:
sunkaixuan
2023-12-20 13:50:26 +08:00
parent d69344d4a2
commit 5dab305c30
2 changed files with 10 additions and 0 deletions

View File

@@ -421,6 +421,10 @@ WHERE tgrelid = '" + tableName + "'::regclass");
}
return true;
}
public override bool RenameTable(string oldTableName, string newTableName)
{
return base.RenameTable(this.SqlBuilder.GetTranslationTableName(oldTableName), this.SqlBuilder.GetTranslationTableName(newTableName));
}
public override bool CreateTable(string tableName, List<DbColumnInfo> columns, bool isCreatePrimaryKey = true)
{
if (columns.HasValue())

View File

@@ -312,6 +312,12 @@ WHERE tgrelid = '"+tableName+"'::regclass");
return base.AddDefaultValue(this.SqlBuilder.GetTranslationTableName(tableName), this.SqlBuilder.GetTranslationTableName(columnName), defaultValue);
}
}
public override bool RenameTable(string oldTableName, string newTableName)
{
return base.RenameTable(this.SqlBuilder.GetTranslationTableName(oldTableName), this.SqlBuilder.GetTranslationTableName(newTableName));
}
public override bool AddColumnRemark(string columnName, string tableName, string description)
{
tableName = this.SqlBuilder.GetTranslationTableName(tableName);