mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
Disable foreign key checks when seeding categories table
This commit is contained in:
@@ -12,6 +12,8 @@ class CategoriesTableSeeder extends Seeder
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
DB::statement('SET FOREIGN_KEY_CHECKS=0;');
|
||||
|
||||
\DB::table('categories')->delete();
|
||||
|
||||
\DB::table('categories')->insert([
|
||||
@@ -753,5 +755,7 @@ class CategoriesTableSeeder extends Seeder
|
||||
'maxsizetoformrelease' => 0,
|
||||
],
|
||||
]);
|
||||
|
||||
DB::statement('SET FOREIGN_KEY_CHECKS=1;');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user