Update tag categories

This commit is contained in:
Jared Schoeny
2025-12-24 00:56:44 -10:00
parent 6d06767e28
commit 43d2530ce2
2 changed files with 10 additions and 2 deletions

View File

@@ -1,12 +1,13 @@
import { IconType } from "react-icons";
import { MdCatchingPokemon, MdNewReleases, MdAutoFixHigh, MdSettingsSuggest } from "react-icons/md";
import { MdCategory, MdCatchingPokemon, MdNewReleases, MdAutoFixHigh, MdSettingsSuggest } from "react-icons/md";
import { BiSolidGame } from "react-icons/bi";
import { FaClock, FaGaugeHigh, FaMasksTheater } from "react-icons/fa6";
import { IoLogoGameControllerA } from "react-icons/io";
export const CATEGORY_ICONS: Record<string, IconType> = {
"Category": MdCategory,
"Pokédex": MdCatchingPokemon,
"Sprites": BiSolidGame,
"Graphics": BiSolidGame,
"New": MdNewReleases,
"Altered": MdAutoFixHigh,
"Quality of Life": MdSettingsSuggest,

View File

@@ -0,0 +1,7 @@
DO $$ BEGIN
if exists (select 1 from pg_type where typname = 'Tag Categories' and typtype = 'e' and typarray = 0) then
alter type public."Tag Categories" rename value 'Sprites' to 'Graphics';
end if;
END $$;
alter type public."Tag Categories" add value if not exists 'Category';