X-Git-Url: https://git.treefish.org/banana.git/blobdiff_plain/7c6abf783f4b583b0c8bc43ad434fcce37a3dcc7..17e62c4bb73a987b44853d7b07a86c2b14160bda:/admin/include/db.inc?ds=inline diff --git a/admin/include/db.inc b/admin/include/db.inc index 7c4da1d..f7c4e6c 100644 --- a/admin/include/db.inc +++ b/admin/include/db.inc @@ -1,18 +1,7 @@ query('CREATE TABLE IF NOT EXISTS students - (mnumber int, firstname string, lastname string, email string, password string, blackboard int DEFAULT 0, lastblackboard TIMESTAMP, PRIMARY KEY (mnumber))'); - $db->query('CREATE TABLE IF NOT EXISTS workdone - (mnumber int, session int, manydone int, thisdone string, tstamp TIMESTAMP)'); - $db->query('CREATE TABLE IF NOT EXISTS prefs - (key string, value string, PRIMARY KEY (key))'); - $db->query('CREATE TABLE IF NOT EXISTS sessions - (id int NOT NULL, examples string, nexamples int, PRIMARY KEY (id))'); - $db->query('CREATE TABLE IF NOT EXISTS exams - (id int NOT NULL, score string, PRIMARY KEY (id))'); - $db->query('CREATE TABLE IF NOT EXISTS examscore - (mnumber int, exam int, scorestr string, tstamp TIMESTAMP)'); + require 'dbscheme.inc'; } } ?>