neues Datenbankschema erstellt.

This commit is contained in:
Michael Keist 2018-08-12 13:49:10 +02:00
parent 338528f3cb
commit 2ab8cb79e3
1 changed files with 11 additions and 1 deletions

12
nlvmi
View File

@ -64,7 +64,17 @@ function createdb {
usbdev1 VARCHAR(50),
usbdev2 VARCHAR(50),
usbdev3 VARCHAR(50),
kblang VARCHAR(50)
kblang VARCHAR(50),
memory INTEGER,
cpus INTEGER,
custom VARCHAR(50),
cputype VARCHAR(50)
);"
sqlite3 $SQLITEFILE "CREATE TABLE users (
id INTEGER PRIMARY KEY AUTOINCREMENT,
username VARCHAR(50) NOT NULL,
password VARCHAR(50),
admin INTEGER
);"
fi
checkdb && echo "DB creation successful!" || (echo "Failed to create the DB"; exit 1)