PteroTheme/database/migrations/2022_01_25_030847_drop_goog...

32 lines
566 B
PHP

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