swap hardcoded public values for DB_SCHEMA constant
This commit is contained in:
@@ -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\';';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user