From 2ab8cb79e3c917ef6f2bbdccc08761d792bde20d Mon Sep 17 00:00:00 2001 From: micuell Date: Sun, 12 Aug 2018 13:49:10 +0200 Subject: [PATCH] neues Datenbankschema erstellt. --- nlvmi | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/nlvmi b/nlvmi index 9d486f2..35e820a 100755 --- a/nlvmi +++ b/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)