From b7aed60245c6f50c9bcb4cdca9edc14677b6cd13 Mon Sep 17 00:00:00 2001 From: Jesselyn Mu <90194068+jesselynmu@users.noreply.github.com> Date: Tue, 4 Feb 2025 20:20:52 +0700 Subject: [PATCH] update db --- .streamlit/secrets.toml | 6 +++--- employee_attrition_db.sql | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.streamlit/secrets.toml b/.streamlit/secrets.toml index f8fea78..bc6d9e4 100644 --- a/.streamlit/secrets.toml +++ b/.streamlit/secrets.toml @@ -1,6 +1,6 @@ [mysql] host = "sql12.freesqldatabase.com" port = 3306 -user = "sql12759885" -password = "K4Ngr8PWjt" -dbname = "sql12759885" \ No newline at end of file +user = "sql12761095" +password = "mvUNuQW8DX" +dbname = "sql12761095" \ No newline at end of file diff --git a/employee_attrition_db.sql b/employee_attrition_db.sql index d4d9081..4ecae82 100644 --- a/employee_attrition_db.sql +++ b/employee_attrition_db.sql @@ -875,7 +875,7 @@ CREATE TABLE `employee_comments` ( `id` int(11) NOT NULL, `employee_id` varchar(50) NOT NULL, `comment` text NOT NULL, - `created_at` datetime DEFAULT current_timestamp() + `created_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- @@ -963,7 +963,7 @@ CREATE TABLE `history_prediction` ( `hasil_prediksi_klasifikasi` varchar(50) DEFAULT NULL, `probabilitas_pred_klasifikasi` decimal(5,2) DEFAULT NULL, `hasil_prediksi_regresi` decimal(10,2) DEFAULT NULL, - `waktu_prediksi` datetime DEFAULT current_timestamp() + `waktu_prediksi` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; --