WordPress.org

Support

Support » Plugins and Hacks » [Resolved] exclude the "users" table

[Resolved] exclude the "users" table

  • Hi,

    Is it possible to add the possibility to exclude the “users” table from the export of the database in a next update ?

    This would allows not to send in preprod (or prod) the users ID/passwords used in local.

    A checkbox added in the back office and a little condition on the export would do the trick.

    Thanks,

    Example: without configuration in Back Office

    foreach ($tables as $table) {
    
            if($table[0] != $table_prefix."users"){ // new : accepts all tables except users
    
                 if ( 'VIEW' == $table[1] ) continue;
                 $table = $table[0];
     			// Increase script execution time-limit to 15 min for every table.
     			$this->stow("# " . sprintf(__('Table: %s','wp-migrate-db'),$this->backquote($table)) . "\n");
     			$this->stow("# --------------------------------------------------------\n");
     			$this->backup_table($table);
    
            } // new end if
    }

    http://wordpress.org/extend/plugins/wp-migrate-db/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] exclude the "users" table’ is closed to new replies.