Fixed a bug where sessions table had no id of 0 (Mysql)

This commit is contained in:
Rsl1122 2017-09-10 16:36:27 +03:00
parent 5cbfdcd30e
commit 458638d3f2

View File

@ -84,6 +84,8 @@ public class Version8TransferTable extends Table {
nicknamesTable.createTable();
execute(dropTableSql("plan_sessions"));
db.getSessionsTable().createTable();
execute("INSERT INTO plan_sessions (id, user_id, server_id, session_start, session_end, mob_kills, deaths) " +
"VALUES (0, 1, 1, 0, 0, 0, 0)");
killsTable.createTable();
UserInfoTable userInfoTable = db.getUserInfoTable();