#!/usr/bin/env node import { config } from 'dotenv'; import { sql } from '../lib/sql.js'; // Load environment variables config({ path: '.env.local' }); async function addImageColumn() { try { console.log('šŸ–¼ļø Adding image column to collections table...\n'); // Add image column to collections table await sql` ALTER TABLE collections ADD COLUMN IF NOT EXISTS image TEXT `; console.log('āœ… Added image column to collections table'); console.log('\nšŸŽ‰ Image column added successfully!'); console.log('\nšŸ“‹ Collections can now have hero images!'); } catch (error) { console.error('āŒ Migration failed:', error.message); process.exit(1); } } addImageColumn();