Optimize the code

This commit is contained in:
sunkaixuan
2025-09-10 11:37:24 +08:00
parent 1a2112d3ef
commit cdd6069c0c
2 changed files with 5 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
<package >
<metadata>
<id>SqlSugar.MongoDbCore</id>
<version>5.1.4.247</version>
<version>5.1.4.259</version>
<authors>sunkaixuan</authors>
<owners>果糖大数据</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>

View File

@@ -519,6 +519,10 @@ WHERE tgrelid = '"+tableName+"'::regclass");
{
dataSize = "int8";
}
else if (dataType?.ToLower() == "bigint")
{
dataSize = "int8";
}
string length = dataType.Substring(dataType.Length - 1);
string identityDataType = "serial" + length;
addItem = addItem.Replace(dataType, identityDataType);