Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
尧杰 曾 committed Aug 26, 2022
1 parent 24bedc6 commit 9edae41
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CDK/DatabaseManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,13 @@ internal void CheckSchema() // intial mysql table
Main.Instance.Configuration.Instance.MySQLTableVer = 3;
Main.Instance.Configuration.Save();
}
if(Main.Instance.Configuration.Instance.MySQLTableVer == 3)
{
ExecuteQuery(true, $"ALTER TABLE `{Main.Instance.Configuration.Instance.DatabaseCDKTableName}` MODIFY `GrantPermissionGroup` VARCHAR(32)");
ExecuteQuery(true, $"ALTER TABLE `{Main.Instance.Configuration.Instance.DatabaseCDKTableName}` MODIFY `Owner` BIGINT UNSIGNED");
Main.Instance.Configuration.Instance.MySQLTableVer = 4;
Main.Instance.Configuration.Save();
}
}

private MySqlConnection CreateConnection()
Expand Down
4 changes: 2 additions & 2 deletions CDK/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.3.0.1")]
[assembly: AssemblyFileVersion("3.3.0.1")]
[assembly: AssemblyVersion("3.3.0.2")]
[assembly: AssemblyFileVersion("3.3.0.2")]

0 comments on commit 9edae41

Please sign in to comment.