mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
Manage FK checks
This commit is contained in:
@@ -12,6 +12,7 @@ return new class extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
DB::statement('SET FOREIGN_KEY_CHECKS=0;');
|
||||
DB::table('categories')->insert([
|
||||
'id' => 6047,
|
||||
'title' => 'OnlyFans',
|
||||
@@ -22,6 +23,7 @@ return new class extends Migration
|
||||
'minsizetoformrelease' => 0,
|
||||
'maxsizetoformrelease' => 0,
|
||||
]);
|
||||
DB::statement('SET FOREIGN_KEY_CHECKS=1;');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -31,6 +33,8 @@ return new class extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
DB::statement('SET FOREIGN_KEY_CHECKS=0;');
|
||||
DB::table('categories')->where('id', 6047)->delete();
|
||||
DB::statement('SET FOREIGN_KEY_CHECKS=1;');
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user