uk.co.workingedge.cordova.plugin.sqliteporter
Advanced tools
Comparing version 0.1.6 to 0.1.7
{ | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"name": "uk.co.workingedge.cordova.plugin.sqliteporter", | ||
@@ -4,0 +4,0 @@ "cordova_name": "sqlite porter", |
@@ -181,9 +181,11 @@ /** | ||
var row = results.rows.item(i); | ||
if (row.sql != null && row.sql.indexOf("CREATE TABLE") != -1 && row.sql.indexOf("__") == -1) { | ||
if(row.sql == null || row.sql.indexOf("__") != -1) continue; | ||
if (row.sql.indexOf("CREATE TABLE") != -1) { | ||
var tableName = sqlUnescape(trimWhitespace(trimWhitespace(row.sql.replace("CREATE TABLE", "")).split(/ |\(/)[0])); | ||
if(!isReservedTable(tableName)) { | ||
sqlStatements.push("DROP TABLE IF EXISTS " + sqlEscape(tableName)); | ||
sqlStatements.push(row.sql); | ||
} | ||
} | ||
if(row.sql != null && row.sql.indexOf("__") == -1){ | ||
}else{ | ||
sqlStatements.push(row.sql); | ||
@@ -190,0 +192,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49148
582