Update pgsql

This commit is contained in:
sunkaixuan 2024-04-08 11:21:33 +08:00
parent dfa910d2da
commit dca187e023

View File

@ -484,11 +484,14 @@ WHERE tgrelid = '" + tableName + "'::regclass");
ConvertCreateColumnInfo(item);
if (item.DbColumnName.Equals("GUID", StringComparison.CurrentCultureIgnoreCase) && item.Length == 0)
{
if (item.DataType?.ToLower() != "uuid")
{
item.Length = 10;
}
}
}
}
string sql = GetCreateTableSql(tableName, columns);
string primaryKeyInfo = null;
if (columns.Any(it => it.IsPrimarykey) && isCreatePrimaryKey)