Merge pull request #81 from Malckyor/main

Implement auto-cycle event quests
This commit is contained in:
Matthew
2023-11-24 00:26:27 -08:00
committed by GitHub
3 changed files with 70 additions and 11 deletions

View File

@@ -11,4 +11,4 @@ create table if not exists event_quests
ALTER TABLE IF EXISTS public.servers DROP COLUMN IF EXISTS season;
END;
END;

View File

@@ -0,0 +1,7 @@
BEGIN;
ALTER TABLE IF EXISTS public.event_quests ADD COLUMN IF NOT EXISTS start_time timestamp with time zone NOT NULL DEFAULT (CURRENT_DATE + interval '0 second');
ALTER TABLE IF EXISTS public.event_quests ADD COLUMN IF NOT EXISTS active_duration int DEFAULT 4;
ALTER TABLE IF EXISTS public.event_quests ADD COLUMN IF NOT EXISTS inactive_duration int DEFAULT 3;
END;