Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 150
Zeile 410... Zeile 410...
410
            $this->grammar->compileDisableForeignKeyConstraints()
410
            $this->grammar->compileDisableForeignKeyConstraints()
411
        );
411
        );
412
    }
412
    }
Zeile 413... Zeile 413...
413
 
413
 
-
 
414
    /**
-
 
415
     * Disable foreign key constraints during the execution of a callback.
-
 
416
     *
-
 
417
     * @param  \Closure  $callback
-
 
418
     * @return mixed
-
 
419
     */
-
 
420
    public function withoutForeignKeyConstraints(Closure $callback)
-
 
421
    {
-
 
422
        $this->disableForeignKeyConstraints();
-
 
423
 
-
 
424
        $result = $callback();
-
 
425
 
-
 
426
        $this->enableForeignKeyConstraints();
-
 
427
 
-
 
428
        return $result;
-
 
429
    }
-
 
430
 
414
    /**
431
    /**
415
     * Execute the blueprint to build / modify the table.
432
     * Execute the blueprint to build / modify the table.
416
     *
433
     *
417
     * @param  \Illuminate\Database\Schema\Blueprint  $blueprint
434
     * @param  \Illuminate\Database\Schema\Blueprint  $blueprint
418
     * @return void
435
     * @return void