summaryrefslogtreecommitdiff
path: root/myapp/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'myapp/src/main/java')
-rw-r--r--myapp/src/main/java/io/trygvis/container/myapp/AddressBook.java5
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);
+ }
}
}