From 5cd268df23d0298167eb73143b02dcc213d1ccc9 Mon Sep 17 00:00:00 2001 From: "Ewerton B. S" Date: Wed, 23 Aug 2023 05:31:12 +0900 Subject: [PATCH] Update 03-event_quests.sql auto-cycle --- patch-schema/03-event_quests.sql | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/patch-schema/03-event_quests.sql b/patch-schema/03-event_quests.sql index 6bad468fc..b8003954f 100644 --- a/patch-schema/03-event_quests.sql +++ b/patch-schema/03-event_quests.sql @@ -7,13 +7,11 @@ create table if not exists event_quests quest_type integer not null, quest_id integer not null, mark integer, - weekly_cycle integer default 1, - available_in_all_cycles bool default true + start_time timestamp with time zone NOT NULL DEFAULT (CURRENT_DATE + interval '0 second'), + active_duration int not null, + inactive_duration int not null ); ALTER TABLE IF EXISTS public.servers DROP COLUMN IF EXISTS season; -ALTER TABLE IF EXISTS public.events ADD COLUMN IF NOT EXISTS current_cycle_number int; -ALTER TYPE event_type ADD VALUE 'EventQuests'; - END;