The job_run_logs table tracks scheduled job orchestration, not individual worker jobs. Worker info (worker_id, worker_hostname) belongs on dispensary_crawl_jobs, not job_run_logs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
31 lines
939 B
JavaScript
31 lines
939 B
JavaScript
"use strict";
|
|
/**
|
|
* Dutchie AZ Schema Bootstrap
|
|
*
|
|
* Run this to create/update the dutchie_az tables (dutchie_products, dutchie_product_snapshots, etc.)
|
|
* in the AZ pipeline database. This is separate from the legacy schema.
|
|
*
|
|
* Usage:
|
|
* TS_NODE_TRANSPILE_ONLY=1 npx ts-node src/dutchie-az/db/migrate.ts
|
|
* or (after build)
|
|
* node dist/dutchie-az/db/migrate.js
|
|
*/
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const schema_1 = require("./schema");
|
|
const connection_1 = require("./connection");
|
|
async function main() {
|
|
try {
|
|
console.log('[DutchieAZ] Running schema migration...');
|
|
await (0, schema_1.createSchema)();
|
|
console.log('[DutchieAZ] Schema migration complete.');
|
|
}
|
|
catch (err) {
|
|
console.error('[DutchieAZ] Schema migration failed:', err.message);
|
|
process.exitCode = 1;
|
|
}
|
|
finally {
|
|
await (0, connection_1.closePool)();
|
|
}
|
|
}
|
|
main();
|