const db = require('../src/db');

async function fixBanner() {
    console.log('--- Starting Manual Fix for banner_url ---');
    try {
        await db.query("ALTER TABLE users ADD COLUMN banner_url VARCHAR(255) DEFAULT '/banner-default.jpg'");
        console.log('✅ Added users.banner_url successfully!');
    } catch (err) {
        if (err.message.includes('Duplicate column')) {
            console.log('ℹ️ users.banner_url already exists.');
        } else {
            console.error('❌ Error adding banner_url:', err.message);
        }
    }
    process.exit(0);
}

fixBanner();
