Skip to content

Commit 68f4dea

Browse files
committed
core (add) add OPTIMIZE TABLE function to Database class
1 parent be28955 commit 68f4dea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/src/Database.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,4 +818,9 @@ public function rollback()
818818
{
819819
DB::rollBack();
820820
}
821+
822+
public function optimize($table_name)
823+
{
824+
DB::statement('OPTIMIZE TABLE '.$table_name);
825+
}
821826
}

0 commit comments

Comments
 (0)