Skip to content

Commit

Permalink
Merge pull request interconnectit#160 from matt-icit/master
Browse files Browse the repository at this point in the history
Fix AJAX errors when altering collation on tables
  • Loading branch information
matt-icit committed Nov 12, 2015
2 parents 365ef7c + 867aa6c commit c8dfccb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions srdb.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1042,8 +1042,9 @@ public function update_engine( $engine = 'MyISAM', $tables = array() ) {

$report = array( 'engine' => $engine, 'converted' => array() );

$all_tables = $this->get_tables();

if ( empty( $tables ) ) {
$all_tables = $this->get_tables();
$tables = array_keys( $all_tables );
}

Expand Down Expand Up @@ -1092,8 +1093,9 @@ public function update_collation( $collation = 'utf8_unicode_ci', $tables = arra

$report = array( 'collation' => $collation, 'converted' => array() );

$all_tables = $this->get_tables();

if ( empty( $tables ) ) {
$all_tables = $this->get_tables();
$tables = array_keys( $all_tables );
}

Expand Down

0 comments on commit c8dfccb

Please sign in to comment.