Merge pull request #535 from 1day2die/development

im stoopid
This commit is contained in:
Dennis 2022-08-12 12:51:07 +02:00 committed by GitHub
commit 42ff583288
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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'
]);
}
}