From 574affdb4e15a9e7c2c9f0412d8ff74923943081 Mon Sep 17 00:00:00 2001 From: "jisangs (iMac)" Date: Sat, 23 Apr 2022 22:43:18 +0900 Subject: [PATCH] Fix: add_maestro - fill the columns for not null --- src/web/server/maestro/add_maestro.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web/server/maestro/add_maestro.php b/src/web/server/maestro/add_maestro.php index 0e90f24..7cdbf09 100644 --- a/src/web/server/maestro/add_maestro.php +++ b/src/web/server/maestro/add_maestro.php @@ -66,8 +66,8 @@ function add_maestro($maestro_name, $password, $email, $account_type) { global $db_conn; $query = " - INSERT INTO maestro (Name, Password, Email, AccountType, ActivateStatus, PlayerCount, AcceptClausesDateTime, MaestroTestID) - VALUES (?, PASSWORD(?), ?, ?, 0, 0, NOW(), -1)"; + INSERT INTO maestro (Name, Password, Email, AccountType, ActivateStatus, AvailableActivateDateTime, PlayerCount, AcceptClausesDateTime, AllowEditEnterCode, MaestroTestID) + VALUES (?, PASSWORD(?), ?, ?, 0, '0000-00-00 00:00:00', 0, NOW(), 0, 0)"; $stmt = $db_conn->prepare($query); $stmt->bind_param("sssi", $maestro_name, $password, $email, $account_type); $stmt->execute();