yii\db\mysql\QueryBuilder::checkIntegrity PHP 메소드

checkIntegrity() 공개 메소드

Builds a SQL statement for enabling or disabling 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 MySQL.
$table string the table name. Meaningless for MySQL.
리턴 string the SQL statement for checking integrity
    public function checkIntegrity($check = true, $schema = '', $table = '')
    {
        return 'SET FOREIGN_KEY_CHECKS = ' . ($check ? 1 : 0);
    }