mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-22 17:12:30 +01:00
32 lines
566 B
PHP
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',
|
|
]
|
|
);
|
|
}
|
|
}
|