mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-06 19:36:03 +00:00
stop trying to clear the public schema on postgres
because you don't have permission to do that
This commit is contained in:
parent
611b6c0179
commit
675d176b57
@ -52,7 +52,7 @@ public void clearAllSchemas(Connection connection) {
|
||||
statement -> {
|
||||
try {
|
||||
return statement.executeQuery(
|
||||
"SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME <> 'information_schema' AND SCHEMA_NAME <> 'sys' AND SCHEMA_NAME NOT LIKE 'pg_%'" );
|
||||
"SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME <> 'information_schema' AND SCHEMA_NAME <> 'sys' AND SCHEMA_NAME <> 'public' AND SCHEMA_NAME NOT LIKE 'pg_%'" );
|
||||
}
|
||||
catch (SQLException sqlException) {
|
||||
throw new RuntimeException( sqlException );
|
||||
|
Loading…
x
Reference in New Issue
Block a user