Skip to content

Commit

Permalink
fix deleting order in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
igr committed Apr 12, 2019
1 parent cc8742b commit 279b05a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jodd-db/src/test/java/jodd/db/fixtures/DbHsqldbTestCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ protected void setupPool(final CoreConnectionPool cp) {

@Override
protected void initDb(final DbSession session) {

executeUpdate(session, "drop table BOY if exists");
executeUpdate(session, "drop table GIRL if exists");

String sql = "create table GIRL (" +
"ID integer not null," +
"NAME varchar(20) not null," +
Expand All @@ -54,7 +55,6 @@ protected void initDb(final DbSession session) {
')';
executeUpdate(session, sql);

executeUpdate(session, "drop table BOY if exists");
sql = "create table BOY (" +
"ID integer not null," +
"GIRL_ID integer null," +
Expand Down

0 comments on commit 279b05a

Please sign in to comment.