- 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>
19 lines
568 B
TypeScript
19 lines
568 B
TypeScript
import { pool } from './src/db/migrate.js';
|
|
import fs from 'fs';
|
|
|
|
async function runMigration() {
|
|
try {
|
|
const sql = fs.readFileSync('/home/kelly/dutchie-menus/backend/migrations/add-stock-columns.sql', 'utf8');
|
|
console.log('Running migration: add-stock-columns.sql');
|
|
await pool.query(sql);
|
|
console.log('✅ Migration complete - stock_quantity and stock_status columns added');
|
|
await pool.end();
|
|
} catch (error: any) {
|
|
console.error('❌ Migration failed:', error.message);
|
|
await pool.end();
|
|
process.exit(1);
|
|
}
|
|
}
|
|
|
|
runMigration();
|