swap hardcoded public values for DB_SCHEMA constant

This commit is contained in:
Matthew Bucci
2024-10-18 23:07:05 -07:00
parent 129aa7f171
commit 36726124a4
7 changed files with 33 additions and 9 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ class ShowTablesSQLRewriter extends AbstractSQLRewriter
{
public function rewrite(): string
{
$schema = "public";
$schema = DB_SCHEMA;
return 'SELECT tablename FROM pg_tables WHERE schemaname = \'$schema\';';
}
}