qqq
This commit is contained in:
@@ -265,6 +265,16 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
* @throws Exception
|
||||
*/
|
||||
public function optimize(): mixed
|
||||
{
|
||||
return static::query()->execute('OPTIMIZE TABLE ' . $this->getTable())->exec();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return static
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user