Files
cannaiq/backend/archive/run-logo-migration.js
Kelly d91c55a344 feat: Add stale process monitor, users route, landing page, archive old scripts
- Add backend stale process monitoring API (/api/stale-processes)
- Add users management route
- Add frontend landing page and stale process monitor UI on /scraper-tools
- Move old development scripts to backend/archive/
- Update frontend build with new features

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 04:07:31 -07:00

29 lines
717 B
JavaScript

const { Pool } = require('pg');
const fs = require('fs');
const path = require('path');
const pool = new Pool({
connectionString: 'postgresql://sail:password@localhost:5432/dutchie_menus'
});
async function runMigration() {
const client = await pool.connect();
try {
const migrationPath = '/home/kelly/dutchie-menus/backend/migrations/010_store_logo.sql';
const sql = fs.readFileSync(migrationPath, 'utf8');
console.log('Running migration: 010_store_logo.sql');
await client.query(sql);
console.log('✅ Migration completed successfully');
} catch (error) {
console.error('❌ Migration failed:', error);
} finally {
client.release();
pool.end();
}
}
runMigration();