From 1ec8da8bf7c93baccfb6b081ae4baec5570b4446 Mon Sep 17 00:00:00 2001 From: Aaron Kimbrell Date: Sat, 30 Sep 2023 06:22:32 -0500 Subject: [PATCH] fix: remove foreign key on name in cheat_detection table (#1202) --- migrations/dlu/11_fix_cheat_detection_table.sql | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 migrations/dlu/11_fix_cheat_detection_table.sql diff --git a/migrations/dlu/11_fix_cheat_detection_table.sql b/migrations/dlu/11_fix_cheat_detection_table.sql new file mode 100644 index 00000000..21464834 --- /dev/null +++ b/migrations/dlu/11_fix_cheat_detection_table.sql @@ -0,0 +1,9 @@ +DROP TABLE IF EXISTS `player_cheat_detections`; +CREATE TABLE IF NOT EXISTS player_cheat_detections ( + id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, + account_id INT REFERENCES accounts(id), + name TEXT NOT NULL, + violation_msg TEXT NOT NULL, + violation_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP(), + violation_system_address TEXT NOT NULL +);