protected function cleanup($sqlMode)
    {
        if (Yii::$app->db->schema instanceof \yii\db\mysql\Schema) {
            Yii::$app->db->createCommand('SET FOREIGN_KEY_CHECKS = 1;')->execute();
            Yii::$app->db->createCommand('SET UNIQUE_CHECKS = 1;')->execute();

            if ($sqlMode !== null) {
                Yii::$app->db->createCommand('SET SQL_MODE=:sqlMode;', [':sqlMode' => $sqlMode])->execute();
            }
        }
    }