13 lines
315 B
JavaScript
13 lines
315 B
JavaScript
const { Pool } = require('pg');
|
|
const pool = new Pool({
|
|
user: 'postgres',
|
|
host: '127.0.0.1',
|
|
database: 'musadaq',
|
|
password: 'postgres_password',
|
|
port: 5432,
|
|
});
|
|
pool.query("UPDATE subscriptions SET max_companies = -1", (err, res) => {
|
|
console.log(err ? err : "Updated successfully!");
|
|
pool.end();
|
|
});
|