From 4d4941ef68231ee5fea436037a0af0feb961f02d Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Mon, 24 Jul 2023 18:10:44 +0200 Subject: [PATCH] Added sql for cfg in wi migration #127 --- .../bot_data/migration/db_history_scripts/config/server.sql | 4 ++-- .../db_history_scripts/config/server_afk_channels.sql | 4 ++-- .../migration/db_history_scripts/config/server_team_roles.sql | 4 ++-- .../migration/db_history_scripts/config/technician.sql | 4 ++-- .../migration/db_history_scripts/config/technician_ids.sql | 4 ++-- .../db_history_scripts/config/technician_ping_urls.sql | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/kdb-bot/src/bot_data/migration/db_history_scripts/config/server.sql b/kdb-bot/src/bot_data/migration/db_history_scripts/config/server.sql index ed2be14a..e9c327b8 100644 --- a/kdb-bot/src/bot_data/migration/db_history_scripts/config/server.sql +++ b/kdb-bot/src/bot_data/migration/db_history_scripts/config/server.sql @@ -47,7 +47,7 @@ BEGIN `DateTo` ) VALUES ( - OLD.UserId, + OLD.Id, OLD.MessageDeleteTimer, OLD.NotificationChatId, OLD.MaxVoiceStateHours, @@ -95,7 +95,7 @@ BEGIN `DateTo` ) VALUES ( - OLD.UserId, + OLD.Id, OLD.MessageDeleteTimer, OLD.NotificationChatId, OLD.MaxVoiceStateHours, diff --git a/kdb-bot/src/bot_data/migration/db_history_scripts/config/server_afk_channels.sql b/kdb-bot/src/bot_data/migration/db_history_scripts/config/server_afk_channels.sql index fbd14d7b..4dfd7e31 100644 --- a/kdb-bot/src/bot_data/migration/db_history_scripts/config/server_afk_channels.sql +++ b/kdb-bot/src/bot_data/migration/db_history_scripts/config/server_afk_channels.sql @@ -23,7 +23,7 @@ BEGIN `DateTo` ) VALUES ( - OLD.UserId, + OLD.Id, OLD.ChannelId, OLD.ServerId, OLD.LastModifiedAt, @@ -47,7 +47,7 @@ BEGIN `DateTo` ) VALUES ( - OLD.UserId, + OLD.Id, OLD.ChannelId, OLD.ServerId, TRUE, diff --git a/kdb-bot/src/bot_data/migration/db_history_scripts/config/server_team_roles.sql b/kdb-bot/src/bot_data/migration/db_history_scripts/config/server_team_roles.sql index bbc1aed3..8733da4d 100644 --- a/kdb-bot/src/bot_data/migration/db_history_scripts/config/server_team_roles.sql +++ b/kdb-bot/src/bot_data/migration/db_history_scripts/config/server_team_roles.sql @@ -25,7 +25,7 @@ BEGIN `DateTo` ) VALUES ( - OLD.UserId, + OLD.Id, OLD.RoleId, OLD.TeamMemberType, OLD.ServerId, @@ -51,7 +51,7 @@ BEGIN `DateTo` ) VALUES ( - OLD.UserId, + OLD.Id, OLD.RoleId, OLD.TeamMemberType, OLD.ServerId, diff --git a/kdb-bot/src/bot_data/migration/db_history_scripts/config/technician.sql b/kdb-bot/src/bot_data/migration/db_history_scripts/config/technician.sql index 2ebf8500..50907c2f 100644 --- a/kdb-bot/src/bot_data/migration/db_history_scripts/config/technician.sql +++ b/kdb-bot/src/bot_data/migration/db_history_scripts/config/technician.sql @@ -27,7 +27,7 @@ BEGIN `DateTo` ) VALUES ( - OLD.UserId, + OLD.Id, OLD.HelpCommandReferenceUrl, OLD.WaitForRestart, OLD.WaitForShutdown, @@ -55,7 +55,7 @@ BEGIN `DateTo` ) VALUES ( - OLD.UserId, + OLD.Id, OLD.HelpCommandReferenceUrl, OLD.WaitForRestart, OLD.WaitForShutdown, diff --git a/kdb-bot/src/bot_data/migration/db_history_scripts/config/technician_ids.sql b/kdb-bot/src/bot_data/migration/db_history_scripts/config/technician_ids.sql index 3d13de75..251d4b30 100644 --- a/kdb-bot/src/bot_data/migration/db_history_scripts/config/technician_ids.sql +++ b/kdb-bot/src/bot_data/migration/db_history_scripts/config/technician_ids.sql @@ -21,7 +21,7 @@ BEGIN `DateTo` ) VALUES ( - OLD.UserId, + OLD.Id, OLD.TechnicianId, OLD.LastModifiedAt, CURRENT_TIMESTAMP(6) @@ -43,7 +43,7 @@ BEGIN `DateTo` ) VALUES ( - OLD.UserId, + OLD.Id, OLD.TechnicianId, TRUE, OLD.LastModifiedAt, diff --git a/kdb-bot/src/bot_data/migration/db_history_scripts/config/technician_ping_urls.sql b/kdb-bot/src/bot_data/migration/db_history_scripts/config/technician_ping_urls.sql index fdab3226..d61c3cce 100644 --- a/kdb-bot/src/bot_data/migration/db_history_scripts/config/technician_ping_urls.sql +++ b/kdb-bot/src/bot_data/migration/db_history_scripts/config/technician_ping_urls.sql @@ -21,7 +21,7 @@ BEGIN `DateTo` ) VALUES ( - OLD.UserId, + OLD.Id, OLD.URL, OLD.LastModifiedAt, CURRENT_TIMESTAMP(6) @@ -43,7 +43,7 @@ BEGIN `DateTo` ) VALUES ( - OLD.UserId, + OLD.Id, OLD.URL, TRUE, OLD.LastModifiedAt,