-- v59: Halloween 2026 Badges
-- Allow 'halloween-2026' and 'halloween-2026-winner' in the permanent badges check constraint.

alter table public.profiles
  drop constraint if exists profiles_admin_badge_ids_allowed;

alter table public.profiles
  add constraint profiles_admin_badge_ids_allowed check (
    admin_badge_ids <@ array[
      'owner',
      'staff',
      'helper',
      'verified',
      'premium',
      'donor',
      'og',
      'rich',
      'bug',
      'winner',
      'early',
      'founding100',
      'clown',
      'discord-server-booster',
      'halloween-2026',
      'halloween-2026-winner'
    ]::text[]
  );
