src/database/postgres.js
Function checkUpgrade
has 237 lines of code (exceeds 75 allowed). Consider refactoring. Open
Open
async function checkUpgrade(client) {
const res = await client.query(`
SELECT EXISTS(SELECT *
FROM "information_schema"."columns"
WHERE "table_schema" = 'public'