Initial commit
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
const { Pool } = require('pg');
|
||||
|
||||
const pool = new Pool({
|
||||
connectionString: 'postgres://postgres:csh%402018@localhost:5432/ai_pharmacy'
|
||||
});
|
||||
|
||||
async function run() {
|
||||
try {
|
||||
await pool.query('ALTER TABLE dispensing_records ADD COLUMN IF NOT EXISTS prescription_id VARCHAR(50)');
|
||||
console.log('Successfully added prescription_id column.');
|
||||
} catch (err) {
|
||||
console.error('Error:', err);
|
||||
} finally {
|
||||
pool.end();
|
||||
}
|
||||
}
|
||||
run();
|
||||
Reference in New Issue
Block a user