Skip to content

Commit

Permalink
fix: open sgid is two words
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Mar 25, 2024
1 parent 35455be commit b032e6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/utilities.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ export async function validateOpenSgidTableName(table, schema) {
const tableResult = await dbClient.raw(`SELECT 1 FROM information_schema.tables WHERE table_name = '${table}'`);
const tableFound = tableResult.rows.length === 1;
if (!tableFound) {
errors.push(`"${schema}.${table}" OpenSGID table not found`);
errors.push(`"${schema}.${table}" Open SGID table not found`);
}

const schemaResult = await dbClient.raw(`SELECT 1 FROM information_schema.schemata WHERE schema_name = '${schema}'`);
const schemaFound = schemaResult.rows.length === 1;
if (!schemaFound) {
errors.push(`"${schema}.${table}" OpenSGID schema not found`);
errors.push(`"${schema}.${table}" Open SGID schema not found`);
}

if (errors.length > 0) {
Expand Down

0 comments on commit b032e6d

Please sign in to comment.