mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 07:22:57 +08:00
Update pgsql
This commit is contained in:
parent
dca187e023
commit
62139fee1a
@ -419,11 +419,14 @@ WHERE tgrelid = '"+tableName+"'::regclass");
|
|||||||
{
|
{
|
||||||
ConvertCreateColumnInfo(item);
|
ConvertCreateColumnInfo(item);
|
||||||
if (item.DbColumnName.Equals("GUID", StringComparison.CurrentCultureIgnoreCase) && item.Length == 0)
|
if (item.DbColumnName.Equals("GUID", StringComparison.CurrentCultureIgnoreCase) && item.Length == 0)
|
||||||
|
{
|
||||||
|
if (item.DataType?.ToLower() != "uuid")
|
||||||
{
|
{
|
||||||
item.Length = 10;
|
item.Length = 10;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
string sql = GetCreateTableSql(tableName, columns);
|
string sql = GetCreateTableSql(tableName, columns);
|
||||||
string primaryKeyInfo = null;
|
string primaryKeyInfo = null;
|
||||||
if (columns.Any(it => it.IsPrimarykey) && isCreatePrimaryKey)
|
if (columns.Any(it => it.IsPrimarykey) && isCreatePrimaryKey)
|
||||||
|
Loading…
Reference in New Issue
Block a user