-- Add some notes to add in RSS
DO $$
BEGIN
IF NOT EXISTS (
SELECT 1 FROM pg_class c
INNER JOIN pg_namespace n ON n.oid = c.relnamespace
INNER JOIN pg_attribute a ON a.attrelid = c.oid
WHERE c.relname = 'games' AND n.nspname = 'games' AND a.attname = 'notes_html'
) THEN
games.games ADD COLUMN notes_html VARCHAR(4096) NULL;
END IF;
END
$$;