im stoopid

This commit is contained in:
1Day 2022-08-12 12:50:29 +02:00
parent 88538ab391
commit b9d44b589d
2 changed files with 8 additions and 36 deletions

View file

@ -1,36 +0,0 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
class PteroClientKey extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
// Insert some stuff
DB::table('settings')->insert(
array(
'key' => 'SETTINGS::SYSTEM:PTERODACTYL:ADMIN_USER_TOKEN',
'type' => 'string',
'description' => 'The Client API Key of an Pterodactyl Admin Account',
)
);
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}

View file

@ -500,5 +500,13 @@ class SettingsSeeder extends Seeder
'type' => 'integer',
'description' => 'The Percentage Value a referred user gets'
]);
Settings::firstOrCreate([
'key' => 'SETTINGS::SYSTEM:PTERODACTYL:ADMIN_USER_TOKEN',
], [
'value' =>"",
'type' => 'string',
'description' => 'The Client API Key of an Pterodactyl Admin Account'
]);
}
}