mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-27 03:09:34 +08:00
Update mysql table
This commit is contained in:
@@ -15,6 +15,7 @@ namespace SqlSugar
|
||||
|
||||
public const string CodeFirst_BigString = "varcharmax,longtext,text,clob";
|
||||
public static string CodeFirst_MySqlCollate{get;set;}
|
||||
public static string CodeFirst_MySqlTableEngine { get; set; }
|
||||
|
||||
public static Func<long> CustomSnowFlakeFunc;
|
||||
public static Func<long> CustomSnowFlakeTimeErrorFunc;
|
||||
|
||||
@@ -488,6 +488,10 @@ WHERE EVENT_OBJECT_TABLE = '" + tableName + "'");
|
||||
sql = DorisHelper.UpdateDorisSql(this.SqlBuilder, columns, sql);
|
||||
}
|
||||
sql = sql.Replace("$PrimaryKey", primaryKeyInfo);
|
||||
if (!string.IsNullOrEmpty(StaticConfig.CodeFirst_MySqlTableEngine))
|
||||
{
|
||||
sql+= " ENGINE = " + StaticConfig.CodeFirst_MySqlTableEngine;
|
||||
}
|
||||
this.Context.Ado.ExecuteCommand(sql);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<package >
|
||||
<metadata>
|
||||
<id>SqlSugarCore</id>
|
||||
<version>5.1.4.163-preview02</version>
|
||||
<version>5.1.4.163-preview04</version>
|
||||
<authors>sunkaixuan</authors>
|
||||
<owners>果糖大数据科技</owners>
|
||||
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
||||
|
||||
Reference in New Issue
Block a user