Update create_db.php
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user