Initial commit - Dutchie dispensary scraper

This commit is contained in:
Kelly
2025-11-28 19:45:44 -07:00
commit 5757a8e9bd
23375 changed files with 3788799 additions and 0 deletions

18
backend/run-migration.ts Normal file
View File

@@ -0,0 +1,18 @@
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();