mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Add redis server monitoring
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
// Add redis_args setting if it doesn't exist
|
||||
$exists = DB::table('settings')->where('name', 'redis_args')->exists();
|
||||
|
||||
if (! $exists) {
|
||||
DB::table('settings')->insert([
|
||||
'name' => 'redis_args',
|
||||
'value' => 'NULL',
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
DB::table('settings')->where('name', 'redis_args')->delete();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -572,6 +572,10 @@ class SettingsTableSeeder extends Seeder
|
||||
'name' => 'redis',
|
||||
'value' => '0',
|
||||
],
|
||||
237 => [
|
||||
'name' => 'redis_args',
|
||||
'value' => 'NULL',
|
||||
],
|
||||
212 => [
|
||||
'name' => 'rel_timer',
|
||||
'value' => '30',
|
||||
|
||||
Reference in New Issue
Block a user