do not dump table sqlite_sequence

This commit is contained in:
Uwe Steinmann 2021-09-24 10:23:50 +02:00
parent 8c3c49e3b5
commit a002a23c9b

View File

@ -932,6 +932,8 @@ class SeedDMS_Core_DatabaseAccess {
function createDump($fp) { /* {{{ */ function createDump($fp) { /* {{{ */
$tables = $this->TableList('TABLES'); $tables = $this->TableList('TABLES');
foreach($tables as $table) { foreach($tables as $table) {
if($table == 'sqlite_sequence')
continue;
$query = "SELECT * FROM `".$table."`"; $query = "SELECT * FROM `".$table."`";
$records = $this->getResultArray($query); $records = $this->getResultArray($query);
fwrite($fp,"\n-- TABLE: ".$table."--\n\n"); fwrite($fp,"\n-- TABLE: ".$table."--\n\n");