Fix ban system conversion issue with MySQL
DeathCradle spotted a typo in the ban converter and identified that the issue is likely because we used table_name in some, but not all, of the conversion SQL. Co-authored-by: DeathCradle <rt.luke.s@gmail.com>
This commit is contained in:
parent
b862baa220
commit
78eab01904
3 changed files with 6 additions and 3 deletions
|
|
@ -15,6 +15,9 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin
|
||||||
## Upcoming changes
|
## Upcoming changes
|
||||||
* This could be you!
|
* This could be you!
|
||||||
|
|
||||||
|
## TShock 4.5.0.1
|
||||||
|
* Fixed typo in conversion from old to new ban system for MySQL hosted ban databases. (@DeathCradle)
|
||||||
|
|
||||||
## TShock 4.5.0
|
## TShock 4.5.0
|
||||||
* Updated OTAPI and TSAPI to Terraria 1.4.2.1. (@Stealownz, @DeathCradle)
|
* Updated OTAPI and TSAPI to Terraria 1.4.2.1. (@Stealownz, @DeathCradle)
|
||||||
* Updated TShock with preliminary protocol support for Terraria 1.4.2.1. (@Stealownz)
|
* Updated TShock with preliminary protocol support for Terraria 1.4.2.1. (@Stealownz)
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,7 @@ namespace TShockAPI.DB
|
||||||
int res;
|
int res;
|
||||||
if (database.GetSqlType() == SqlType.Mysql)
|
if (database.GetSqlType() == SqlType.Mysql)
|
||||||
{
|
{
|
||||||
res = database.QueryScalar<int>("SELECT COUNT(name) FROM information_schema.tables WHERE table_schema = @0 and table_name = 'Bans'", TShock.Config.Settings.MySqlDbName);
|
res = database.QueryScalar<int>("SELECT COUNT(table_name) FROM information_schema.tables WHERE table_schema = @0 and table_name = 'Bans'", TShock.Config.Settings.MySqlDbName);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -53,5 +53,5 @@ using System.Runtime.InteropServices;
|
||||||
// Also, be sure to release on github with the exact assembly version tag as below
|
// Also, be sure to release on github with the exact assembly version tag as below
|
||||||
// so that the update manager works correctly (via the Github releases api and mimic)
|
// so that the update manager works correctly (via the Github releases api and mimic)
|
||||||
|
|
||||||
[assembly: AssemblyVersion("4.5.0")]
|
[assembly: AssemblyVersion("4.5.0.1")]
|
||||||
[assembly: AssemblyFileVersion("4.5.0")]
|
[assembly: AssemblyFileVersion("4.5.0.1")]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue