checkIntegrity() public method
Builds a SQL statement for enabling or disabling integrity check.
public string checkIntegrity ( $check = true, $schema = '', $table = '' ) | ||
---|---|---|
$check | boolean |
Whether to turn on or off the integrity check. |
$schema | string |
The schema of the tables. Defaults to empty string, meaning the current or default schema. |
$table | string |
The table name. Defaults to empty string, meaning that no table will be changed. |
return | string |
The SQL statement for checking integrity |
throws | yii\base\InvalidParamException |
if the table does not exist or there is no sequence associated with the table. |
Please login to continue.