summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-08-05 22:32:26 +0200
committermadmaxoft <github@xoft.cz>2014-08-05 22:32:26 +0200
commita717a7e712e6be1e6980cade95f09b5b85bdfe67 (patch)
treea035fa56c30ac506c6f21b9e194010467497681a /src
parentRankMgr: More interface. (diff)
downloadcuberite-a717a7e712e6be1e6980cade95f09b5b85bdfe67.tar
cuberite-a717a7e712e6be1e6980cade95f09b5b85bdfe67.tar.gz
cuberite-a717a7e712e6be1e6980cade95f09b5b85bdfe67.tar.bz2
cuberite-a717a7e712e6be1e6980cade95f09b5b85bdfe67.tar.lz
cuberite-a717a7e712e6be1e6980cade95f09b5b85bdfe67.tar.xz
cuberite-a717a7e712e6be1e6980cade95f09b5b85bdfe67.tar.zst
cuberite-a717a7e712e6be1e6980cade95f09b5b85bdfe67.zip
Diffstat (limited to '')
-rw-r--r--src/RankManager.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/RankManager.cpp b/src/RankManager.cpp
index 954edd099..18ed65b26 100644
--- a/src/RankManager.cpp
+++ b/src/RankManager.cpp
@@ -70,11 +70,11 @@ cRankManager::cRankManager(void) :
m_DB("Ranks.sqlite", SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE)
{
// Create the DB tables, if they don't exist:
- m_DB.exec("CREATE TABLE IF NOT EXISTS Rank (RankID, Name, MsgPrefix, MsgPostfix, MsgNameColorCode)");
- m_DB.exec("CREATE TABLE IF NOT EXISTS PlayerRank (PlayerUUID, PlayerName, RankID)");
- m_DB.exec("CREATE TABLE IF NOT EXISTS PermissionGroup (GroupID, Name)");
- m_DB.exec("CREATE TABLE IF NOT EXISTS RankPermissionGroups (RankID, GroupID)");
- m_DB.exec("CREATE TABLE IF NOT EXISTS PermissionItem (GroupID, Permission)");
+ m_DB.exec("CREATE TABLE IF NOT EXISTS Rank (RankID INTEGER PRIMARY KEY, Name, MsgPrefix, MsgPostfix, MsgNameColorCode)");
+ m_DB.exec("CREATE TABLE IF NOT EXISTS PlayerRank (PlayerUUID, PlayerName, RankID INTEGER)");
+ m_DB.exec("CREATE TABLE IF NOT EXISTS PermissionGroup (GroupID INTEGER PRIMARY KEY, Name)");
+ m_DB.exec("CREATE TABLE IF NOT EXISTS RankPermissionGroups (RankID INTEGER, GroupID INTEGER)");
+ m_DB.exec("CREATE TABLE IF NOT EXISTS PermissionItem (GroupID INTEGER, Permission)");
// TODO: Check if tables empty, add some defaults then
}