feat: add core backend modules, inventory services, and patch scripts for AI Pharmacy API
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { pool } from './src/db/pool';
|
||||
|
||||
async function run() {
|
||||
try {
|
||||
await pool.query("ALTER TABLE users ADD COLUMN IF NOT EXISTS email VARCHAR(255)");
|
||||
await pool.query("ALTER TABLE users ADD COLUMN IF NOT EXISTS phone_number VARCHAR(50)");
|
||||
console.log("Added email and phone_number columns to users table");
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
} finally {
|
||||
process.exit();
|
||||
}
|
||||
}
|
||||
run();
|
||||
Reference in New Issue
Block a user