Merge pull request #2202 from viniciusbds/patch-1
Update SqlCreateBuilder.java
This commit is contained in:
commit
726395620b
@ -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