import { pool } from './src/db/pool'; async function migrate() { try { await pool.query('ALTER TABLE users ADD COLUMN profile_image_url TEXT'); console.log("Migration successful"); } catch (err: any) { if (err.message.includes('already exists')) { console.log("Column already exists"); } else { console.error(err); } } finally { process.exit(0); } } migrate();