feat: implement dispensing module with transaction-safe stock management, FEFO allocation, and H1 compliance reporting
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const pool_1 = require("./src/db/pool");
|
||||
async function migrate() {
|
||||
try {
|
||||
await pool_1.pool.query('ALTER TABLE users ADD COLUMN profile_image_url TEXT');
|
||||
console.log("Migration successful");
|
||||
}
|
||||
catch (err) {
|
||||
if (err.message.includes('already exists')) {
|
||||
console.log("Column already exists");
|
||||
}
|
||||
else {
|
||||
console.error(err);
|
||||
}
|
||||
}
|
||||
finally {
|
||||
process.exit(0);
|
||||
}
|
||||
}
|
||||
migrate();
|
||||
Reference in New Issue
Block a user