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