Create mysql database set utf-8 default value

This commit is contained in:
skx
2021-01-04 18:13:21 +08:00
parent c7118eed25
commit cb5053e537

View File

@@ -61,7 +61,7 @@ namespace SqlSugar
{
get
{
return "CREATE DATABASE {0}";
return "CREATE DATABASE {0} CHARACTER SET utf8 COLLATE utf8_general_ci ";
}
}
protected override string AddPrimaryKeySql