From fa6ecd8df1651c3292493e77276ce653cd32b368 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 17 Jan 2021 01:36:03 -0700 Subject: [PATCH] Add migration --- app/Util/Site/Config.php | 5 +-- config/exp.php | 5 +-- ...15_050602_create_instance_actors_table.php | 33 +++++++++++++++++++ 3 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 database/migrations/2021_01_15_050602_create_instance_actors_table.php diff --git a/app/Util/Site/Config.php b/app/Util/Site/Config.php index b59b610f0..88c211ca9 100644 --- a/app/Util/Site/Config.php +++ b/app/Util/Site/Config.php @@ -8,7 +8,7 @@ use Illuminate\Support\Str; class Config { public static function get() { - return Cache::remember('api:site:configuration:_v0', now()->addHours(30), function() { + return Cache::remember('api:site:configuration:_v0.1', now()->addHours(30), function() { return [ 'open_registration' => config('pixelfed.open_registration'), 'uploader' => [ @@ -34,7 +34,8 @@ class Config { 'ab' => [ 'lc' => config('exp.lc'), 'rec' => config('exp.rec'), - 'loops' => config('exp.loops') + 'loops' => config('exp.loops'), + 'top' => config('exp.top') ], 'site' => [ diff --git a/config/exp.php b/config/exp.php index 440997614..74e9a5e49 100644 --- a/config/exp.php +++ b/config/exp.php @@ -3,6 +3,7 @@ return [ 'lc' => env('EXP_LC', false), - 'rec' => env('EXP_REC', false), - 'loops' => env('EXP_LOOPS', false), + 'rec' => false, + 'loops' => false, + 'top' => env('EXP_TOP', false), ]; diff --git a/database/migrations/2021_01_15_050602_create_instance_actors_table.php b/database/migrations/2021_01_15_050602_create_instance_actors_table.php new file mode 100644 index 000000000..2f06cd3fb --- /dev/null +++ b/database/migrations/2021_01_15_050602_create_instance_actors_table.php @@ -0,0 +1,33 @@ +id(); + $table->text('private_key')->nullable(); + $table->text('public_key')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('instance_actors'); + } +}