Updated database control, character stats are saving

Just for the record, I don't like the way SAVE_CHARACTER is expanded like
that.
This commit is contained in:
Kayne Ruse
2014-06-02 22:22:11 +10:00
parent fb6fba9564
commit 2bebfdfb97
5 changed files with 62 additions and 8 deletions
+6 -1
View File
@@ -1,3 +1,7 @@
--TODO: why is the database setup script scripted, while accessing, etc. hardcoded?
--there should be a way to control the database more directly
--TODO: move this script into a hardocded Init() method?
CREATE TABLE IF NOT EXISTS Accounts (
uid INTEGER PRIMARY KEY AUTOINCREMENT,
username varchar(100) UNIQUE,
@@ -5,7 +9,8 @@ CREATE TABLE IF NOT EXISTS Accounts (
-- password varchar(100),
blacklisted BIT DEFAULT 0,
whitelisted BIT DEFAULT 1,
administrator BIT DEFAULT 0
mod BIT DEFAULT 0,
admin BIT DEFAULT 0
);
CREATE TABLE IF NOT EXISTS Characters (