X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fdb%2Fmaintenance_db.inc;h=8ed6b7dffd57dfe6e3bef9b9da68db4984cd7cb6;hb=2f139f65da2e400350031bdbbeb44aa7ceeb66d8;hp=0a710e34a409e032db4153bbaab5dc78fb12fba9;hpb=4def49c9e0be02ccdf814188c2a72ebd969a7a98;p=fa-stable.git diff --git a/admin/db/maintenance_db.inc b/admin/db/maintenance_db.inc index 0a710e34..8ed6b7df 100644 --- a/admin/db/maintenance_db.inc +++ b/admin/db/maintenance_db.inc @@ -136,6 +136,12 @@ function db_import($filename, $connection) { $data_queries[] = substr($line, 0, strlen($line) - 1); + // this line does not, too + } + elseif (strtolower(substr($line,0,6)) == "update") + { + $data_queries[] = substr($line, 0, strlen($line) - 1); + // this line does not, too } elseif (strtolower(substr($line, 0, 20)) == "drop table if exists") @@ -160,8 +166,10 @@ function db_import($filename, $connection) { // create sql query ending in this line - if (strtolower(substr($line, 0, 1)) == ")") + if (strtolower(substr($line, 0, 1)) == ")") { $table = false; + $line = substr($line,0,strlen($line)-1); + } $table_queries[count($table_queries) - 1] .= $line . "\n"; } }