Skip to content

Commit

Permalink
apply review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Jul 5, 2024
1 parent b57b315 commit 13ce381
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions core/Db.php
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,10 @@ public static function deleteAllRows($table, $where, $orderBy, $maxRowsPerQuery
*/
public static function optimizeTables($tables, $force = false)
{
if (empty($tables)) {
return false;
}

$tables = !is_array($tables) ? [$tables] : $tables;
return Schema::getInstance()->optimizeTables($tables, (bool) $force);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Piwik\Db;
use Piwik\Tests\Framework\TestCase\IntegrationTestCase;

class TiDbTest extends IntegrationTestCase
class TidbTest extends IntegrationTestCase
{
public function testIsOptimizeInnoDBSupportedReturnsCorrectResult()
{
Expand Down

0 comments on commit 13ce381

Please sign in to comment.