mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 10:08:19 +08:00
Synchronization code
This commit is contained in:
@@ -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())
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user