diff options
Diffstat (limited to 'myapp')
-rw-r--r-- | myapp/src/main/java/io/trygvis/container/myapp/AddressBook.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/myapp/src/main/java/io/trygvis/container/myapp/AddressBook.java b/myapp/src/main/java/io/trygvis/container/myapp/AddressBook.java index 0101004..d5a1170 100644 --- a/myapp/src/main/java/io/trygvis/container/myapp/AddressBook.java +++ b/myapp/src/main/java/io/trygvis/container/myapp/AddressBook.java @@ -87,7 +87,7 @@ public class AddressBook { public void run(Connection c) throws Exception { Statement statement = c.createStatement(); statement.executeUpdate(ContactDao.createTableSql); - for (String sql : Sequences.sequences) { + for (String sql : Sequences.createSequences) { statement.executeUpdate(sql); } } @@ -98,6 +98,9 @@ public class AddressBook { public void run(Connection c) throws Exception { Statement statement = c.createStatement(); statement.executeUpdate(ContactDao.dropTableSql); + for (String sql : Sequences.dropSequences) { + statement.executeUpdate(sql); + } } } |