fix bug 3
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
if (! DB::table('settings')->where('key', 'tracking_systems_enabled')->exists()) {
|
||||
DB::table('settings')->insert([
|
||||
'key' => 'tracking_systems_enabled',
|
||||
'value' => 'false',
|
||||
'title_fa' => 'نمایش سامانههای ردیابی',
|
||||
'type' => 'switch',
|
||||
'can_edit' => 0,
|
||||
'is_active' => 1,
|
||||
'description' => 'روشن: اسکریپتهای tracking_systems در اپ مشتری بارگذاری میشوند؛ خاموش: هیچ ردیابی فعال نیست',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
DB::table('settings')->where('key', 'tracking_systems_enabled')->delete();
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user