yii\db\Command::checkIntegrity PHP Method

checkIntegrity() public method

Builds a SQL command for enabling or disabling integrity check.
public checkIntegrity ( boolean $check = true, string $schema = '', string $table = '' )
$check boolean whether to turn on or off the integrity check.
$schema string the schema name of the tables. Defaults to empty string, meaning the current or default schema.
$table string the table name.
    public function checkIntegrity($check = true, $schema = '', $table = '')
    {
        $sql = $this->db->getQueryBuilder()->checkIntegrity($check, $schema, $table);
        return $this->setSql($sql);
    }