feat: implement dispensing module with transaction-safe stock management, FEFO allocation, and H1 compliance reporting
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { pool } from './src/db/pool';
|
||||
|
||||
async function migrate() {
|
||||
try {
|
||||
await pool.query('ALTER TABLE users ADD COLUMN profile_image_url TEXT');
|
||||
console.log("Migration successful");
|
||||
} catch (err: any) {
|
||||
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