This commit is contained in:
neon
2019-10-03 14:17:43 +02:00
parent 492703fb5c
commit 7083749fcf
2 changed files with 2 additions and 2 deletions
@@ -232,7 +232,7 @@ public void SQL_OnDatabaseConnect(Database db, const char[] error, any data)
g_hDatabase = db;
char sQuery[256];
Format(sQuery, sizeof(sQuery), "CREATE TABLE IF NOT EXISTS halloween_table (`steam_auth` varchar(64), `name` varchar(256), `collected` int(16), PRIMARY KEY (`steam_auth`))");
Format(sQuery, sizeof(sQuery), "CREATE TABLE IF NOT EXISTS halloween_table (`steam_auth` varchar(64), `name` varchar(256), `collected` int(16), PRIMARY KEY (`steam_auth`), INDEX (`collected`))");
g_hDatabase.Query(SQL_OnTableCreated, sQuery, _, DBPrio_High);
}