mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
Synchronization code
This commit is contained in:
@@ -421,6 +421,10 @@ WHERE tgrelid = '" + tableName + "'::regclass");
|
|||||||
}
|
}
|
||||||
return true;
|
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)
|
public override bool CreateTable(string tableName, List<DbColumnInfo> columns, bool isCreatePrimaryKey = true)
|
||||||
{
|
{
|
||||||
if (columns.HasValue())
|
if (columns.HasValue())
|
||||||
|
@@ -312,6 +312,12 @@ WHERE tgrelid = '"+tableName+"'::regclass");
|
|||||||
return base.AddDefaultValue(this.SqlBuilder.GetTranslationTableName(tableName), this.SqlBuilder.GetTranslationTableName(columnName), defaultValue);
|
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)
|
public override bool AddColumnRemark(string columnName, string tableName, string description)
|
||||||
{
|
{
|
||||||
tableName = this.SqlBuilder.GetTranslationTableName(tableName);
|
tableName = this.SqlBuilder.GetTranslationTableName(tableName);
|
||||||
|
Reference in New Issue
Block a user