neues Datenbankschema erstellt.
This commit is contained in:
parent
338528f3cb
commit
2ab8cb79e3
12
nlvmi
12
nlvmi
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue