-- Insert missing categories with appropriate icons INSERT INTO categories (name, slug, icon, description) VALUES ('AI Basics', 'ai-basics', 'Brain', 'Fundamental concepts and principles of artificial intelligence'), ('AI Tools', 'ai-tools', 'Tool', 'Various tools and applications powered by artificial intelligence'), ('Beginners', 'beginners', 'GraduationCap', 'Content tailored for those new to AI and machine learning'), ('Business', 'business', 'Building2', 'AI applications and implications for business and enterprise'), ('Machine Learning', 'machine-learning', 'Network', 'Topics related to machine learning algorithms and applications'), ('Productivity', 'productivity', 'Rocket', 'Tools and techniques for enhancing productivity with AI') ON CONFLICT (name) DO NOTHING; -- Remove test tags from posts UPDATE blog_posts SET tags = array_remove(tags, 'tag1') WHERE 'tag1' = ANY(tags); UPDATE blog_posts SET tags = array_remove(tags, 'tag2') WHERE 'tag2' = ANY(tags);