Skip to content

Commit 27aa94d

Browse files
committed
After the first execution of integration tests, i faced with ERROR: schema "ztest_schema1" already exists.
By adding "DROP EXTENSION IF EXISTS hstore CASCADE;" before creating hstore extension, this problem solved for me. (I think because of failure on creating existing hstore extension this error propagates!)
1 parent a133bc4 commit 27aa94d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@
329329
<driver>org.postgresql.Driver</driver>
330330
<url>jdbc:postgresql://${test.db.host}:${test.db.port}/${test.db.name1}</url>
331331
<sqlCommand>
332+
DROP EXTENSION IF EXISTS hstore CASCADE;
332333
CREATE EXTENSION hstore;
333334
DROP SCHEMA IF EXISTS ztest_schema1 CASCADE;
334335
DROP SCHEMA IF EXISTS ztest_schema2 CASCADE;
@@ -368,6 +369,7 @@
368369
<driver>org.postgresql.Driver</driver>
369370
<url>jdbc:postgresql://${test.db.host}:${test.db.port}/${test.db.name2}</url>
370371
<sqlCommand>
372+
DROP EXTENSION IF EXISTS hstore CASCADE;
371373
CREATE EXTENSION hstore;
372374
DROP SCHEMA IF EXISTS ztest_schema1 CASCADE;
373375
</sqlCommand>

0 commit comments

Comments
 (0)