yii\db\sqlite\QueryBuilder::checkIntegrity PHP Method

checkIntegrity() public method

Enables or disables integrity check.
public checkIntegrity ( boolean $check = true, string $schema = '', string $table = '' ) : string
$check boolean whether to turn on or off the integrity check.
$schema string the schema of the tables. Meaningless for SQLite.
$table string the table name. Meaningless for SQLite.
return string the SQL statement for checking integrity
    public function checkIntegrity($check = true, $schema = '', $table = '')
    {
        return 'PRAGMA foreign_keys=' . (int) $check;
    }