[TSM.ID].[11031972] PXE : Platform X Ecosystem I [118 Module -LIVE-]

This commit is contained in:
TSM.ID
2026-05-25 03:50:05 +07:00
commit e820143b3c
673 changed files with 101320 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
/* eslint-disable */
const { Pool } = require('pg');
const pool = new Pool({
connectionString: 'postgresql://jumpa_admin:JumpaS3cur3%21%40%23@localhost:5432/jumpadb'
});
async function runPatch() {
try {
console.log('Adding is_locked column to chat_statuses...');
await pool.query(`ALTER TABLE chat_statuses ADD COLUMN IF NOT EXISTS is_locked boolean DEFAULT false NOT NULL`);
console.log('chat_statuses patched.');
console.log('Adding is_locked column to chat_broadcasts...');
await pool.query(`ALTER TABLE chat_broadcasts ADD COLUMN IF NOT EXISTS is_locked boolean DEFAULT false NOT NULL`);
console.log('chat_broadcasts patched.');
} catch (error) {
console.error('Error patching db:', error);
} finally {
await pool.end();
}
}
runPatch();