From 04103b88260f73eccaab59cfc0adcf7b71c1a0f5 Mon Sep 17 00:00:00 2001 From: Janis Steiner <89935073+jakani24@users.noreply.github.com> Date: Thu, 27 Jun 2024 13:19:28 +0000 Subject: [PATCH] Update create_db.php --- sys0-code/install/create_db.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sys0-code/install/create_db.php b/sys0-code/install/create_db.php index 969ff3e..615012a 100644 --- a/sys0-code/install/create_db.php +++ b/sys0-code/install/create_db.php @@ -27,7 +27,8 @@ $sql = "CREATE TABLE IF NOT EXISTS users ( telegram_id VARCHAR(50), notification_way INT, notification_mail INT, - notification_telegram INT + notification_telegram INT, + class_id INT )"; $link->query($sql); //printer table @@ -46,6 +47,12 @@ $sql = "CREATE TABLE IF NOT EXISTS printer ( )"; $link->query($sql); +$sql = "CREATE TABLE IF NOT EXISTS class ( + id INT AUTO_INCREMENT PRIMARY KEY, + name VARCHAR(50) + )"; +$link->query($sql); + //queue table $sql = "CREATE TABLE IF NOT EXISTS queue ( id INT AUTO_INCREMENT PRIMARY KEY,