rDrama/migrations/20230503-add-new-patron-tie...

16 lines
1018 B
SQL

update badge_defs set name='Paypig', description='Contributes $5/month' where id=22;
update badge_defs set name='Renthog', description='Contributes $10/month' where id=23;
update badge_defs set name='Landchad', description='Contributes $20/month' where id=24;
update badge_defs set name='Terminally online turboautist', description='Contributes $50/month' where id=25;
update badge_defs set name='Marsey''s Sugar Daddy', description='Contributes $100/month' where id=26;
update badge_defs set name='JIDF Bankroller', description='Contributes $200/month' where id=27;
update badge_defs set name='Rich Bich', description='Contributes $500/month' where id=28;
INSERT INTO public.badge_defs VALUES (58, 'Chud', 'Marked as a chud', NULL);
update badges set badge_id=58 where badge_id=28;
update badges set badge_id=badge_id+1 where badge_id in (21,22,23,24,25,26,27);
delete from badge_defs where id=21;
update users set patron=patron+1 where id in (select user_id from badges where badge_id in (22,23,24,25,26,27,28));