From 6b2dae64d4d83692f0ad358f672b3952a65e3bc1 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Fri, 30 Aug 2024 14:16:12 -0600 Subject: [PATCH] fix sql --- migrations/3 - TTS.sql | 2 +- migrations/4 - Add Cooldown.sql | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 migrations/4 - Add Cooldown.sql diff --git a/migrations/3 - TTS.sql b/migrations/3 - TTS.sql index c865bfa..c66a8f7 100644 --- a/migrations/3 - TTS.sql +++ b/migrations/3 - TTS.sql @@ -1,4 +1,4 @@ -- Add ttsOverride column to the accounts table -ALTER TABLE 'accounts' ADD COLUMN 'ttsOverride' INTEGER NOT NULL DEFAULT 0; +ALTER TABLE 'accounts' ADD COLUMN IF NOT EXISTS 'ttsOverride' INTEGER NOT NULL DEFAULT 0; -- Retroactively set ttsOverride to 0 for all accounts that dont have it set at all UPDATE 'accounts' SET 'ttsOverride' = 0 WHERE 'ttsOverride' IS NULL; \ No newline at end of file diff --git a/migrations/4 - Add Cooldown.sql b/migrations/4 - Add Cooldown.sql new file mode 100644 index 0000000..5ee2637 --- /dev/null +++ b/migrations/4 - Add Cooldown.sql @@ -0,0 +1,2 @@ +-- Add ttsOverride column to the accounts table +ALTER TABLE 'accounts' ADD COLUMN IF NOT EXISTS 'cooldown' TEXT; \ No newline at end of file