From ef7da60432179cffe64a28f649b1fcb11f4bc3dd Mon Sep 17 00:00:00 2001 From: "Outrun Colors, LLC" Date: Sun, 29 May 2022 22:17:31 -0500 Subject: [PATCH] Remove new schema changes from file and replace account ids for lottery system --- files/helpers/const.py | 6 ++---- schema.sql | 20 +------------------- 2 files changed, 3 insertions(+), 23 deletions(-) diff --git a/files/helpers/const.py b/files/helpers/const.py index 74a52fd4c..3f532ef2c 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -1021,10 +1021,8 @@ if SITE_NAME == 'rDrama': LOTTERY_TICKET_COST = 12 LOTTERY_SINK_RATE = 3 LOTTERY_ROYALTY_RATE = 1 - LOTTERY_ROYALTY_ACCOUNT_ID = 9 - # LOTTERY_ROYALTY_ACCOUNT_ID = 8239 # (McCoxmaul) - LOTTERY_MANAGER_ACCOUNT_ID = 3 - # LOTTERY_MANAGER_ACCOUNT_ID = 11651 (Lottershe) + LOTTERY_ROYALTY_ACCOUNT_ID = 8239 # (McCoxmaul) + LOTTERY_MANAGER_ACCOUNT_ID = 11651 # (Lottershe) else: LOTTERY_ENABLED = False LOTTERY_TICKET_COST = 0 diff --git a/schema.sql b/schema.sql index 374779e32..efbf3a70b 100644 --- a/schema.sql +++ b/schema.sql @@ -1848,22 +1848,4 @@ ALTER TABLE ONLY public.votes -- ALTER TABLE ONLY public.votes - ADD CONSTRAINT vote_user_fkey FOREIGN KEY (user_id) REFERENCES public.users(id); - - -CREATE TABLE public.lotteries ( - id SERIAL PRIMARY KEY, - is_active boolean DEFAULT false NOT NULL, - ends_at integer DEFAULT 0 NOT NULL, - prize integer DEFAULT 0 NOT NULL, - tickets_sold integer DEFAULT 0 NOT NULL, - winner_id integer DEFAULT null NULL -); - -ALTER TABLE ONLY public.lotteries - ADD CONSTRAINT fk_winner FOREIGN KEY (winner_id) REFERENCES public.users(id); - -ALTER TABLE ONLY public.users - ADD currently_held_lottery_tickets integer DEFAULT 0 NOT NULL, - ADD total_held_lottery_tickets integer DEFAULT 0 NOT NULL, - ADD total_lottery_winnings integer DEFAULT 0 NOT NULL; \ No newline at end of file + ADD CONSTRAINT vote_user_fkey FOREIGN KEY (user_id) REFERENCES public.users(id); \ No newline at end of file