uk.co.workingedge.cordova.plugin.sqliteporter
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"name": "uk.co.workingedge.cordova.plugin.sqliteporter", | ||
@@ -4,0 +4,0 @@ "cordova_name": "sqlite porter", |
@@ -185,7 +185,12 @@ /** | ||
var tableName = sqlUnescape(trimWhitespace(trimWhitespace(row.sql.replace("CREATE TABLE", "")).split(/ |\(/)[0])); | ||
sqlStatements.push("DROP TABLE IF EXISTS " + sqlEscape(tableName)); | ||
/*Added checking for reserved tables in order to prevent even that DROP and CREATE statements for reserved tables be added to the exported sql*/ | ||
if(!isReservedTable(tableName)){ | ||
sqlStatements.push(row.sql); | ||
sqlStatements.push("DROP TABLE IF EXISTS " + sqlEscape(tableName)); | ||
} | ||
} | ||
if(row.sql != null && row.sql.indexOf("__") == -1){ | ||
sqlStatements.push(row.sql); | ||
} | ||
/*commented following lines because the core code has been added in the previous block*/ | ||
// if(row.sql != null && row.sql.indexOf("__") == -1){ | ||
// sqlStatements.push(row.sql); | ||
// } | ||
} | ||
@@ -192,0 +197,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
49725
589