Update SqlCreateBuilder.java
This commit is contained in:
parent
9cb53ae58f
commit
d452e3040c
@ -146,7 +146,7 @@ public class SqlCreateBuilder {
|
|||||||
StringBuffer sql = new StringBuffer();
|
StringBuffer sql = new StringBuffer();
|
||||||
|
|
||||||
boolean includeDrop = JSONUtilities.getBoolean(options, "includeDropStatement", false);
|
boolean includeDrop = JSONUtilities.getBoolean(options, "includeDropStatement", false);
|
||||||
boolean addIfExist = options == null ? false : JSONUtilities.getBoolean(options, "includeIfExistWithDropStatement", true);
|
boolean addIfExist = JSONUtilities.getBoolean(options, "includeIfExistWithDropStatement", true);
|
||||||
if (includeDrop) {
|
if (includeDrop) {
|
||||||
if(addIfExist) {
|
if(addIfExist) {
|
||||||
sql.append("DROP TABLE IF EXISTS " + table + ";\n");
|
sql.append("DROP TABLE IF EXISTS " + table + ";\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user