aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/iciql/TableDefinition.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gmail.com>2012-07-14 16:09:52 -0400
committerJames Moger <james.moger@gmail.com>2012-07-14 16:09:52 -0400
commit9e4799babb53626ccfea78bae9a3d58ceef9d258 (patch)
tree4e882540911aee2f6ef50e53cff0c06e5938a0c4 /src/com/iciql/TableDefinition.java
parent667d1cdef4b465dcaedb5a9544c47b031ae5505d (diff)
downloadiciql-9e4799babb53626ccfea78bae9a3d58ceef9d258.tar.gz
iciql-9e4799babb53626ccfea78bae9a3d58ceef9d258.zip
Use the upgrade check to skip unnecessary table create statements
Diffstat (limited to 'src/com/iciql/TableDefinition.java')
-rw-r--r--src/com/iciql/TableDefinition.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/iciql/TableDefinition.java b/src/com/iciql/TableDefinition.java
index 1d9a98a..b6a670b 100644
--- a/src/com/iciql/TableDefinition.java
+++ b/src/com/iciql/TableDefinition.java
@@ -650,6 +650,9 @@ public class TableDefinition<T> {
db.upgradeTable(this);
return this;
}
+ if (db.hasCreated(clazz)) {
+ return this;
+ }
SQLStatement stat = new SQLStatement(db);
db.getDialect().prepareCreateTable(stat, this);
IciqlLogger.create(stat.getSQL());