PteroTheme/database/migrations/2022_01_25_030847_drop_goog...

26 lines
498 B
PHP

<?php
use Illuminate\Support\Facades\DB;
use Illuminate\Database\Migrations\Migration;
class DropGoogleAnalytics extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
DB::table('settings')->where('key', 'settings::app:analytics')->delete();
}
/**
* Reverse the migrations.
*/
public function down(): void
{
DB::table('settings')->insert([
'key' => 'settings::app:analytics',
]);
}
}