mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Add migration
This commit is contained in:
parent
36a722aa3c
commit
fa6ecd8df1
3 changed files with 39 additions and 4 deletions
|
@ -8,7 +8,7 @@ use Illuminate\Support\Str;
|
||||||
class Config {
|
class Config {
|
||||||
|
|
||||||
public static function get() {
|
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 [
|
return [
|
||||||
'open_registration' => config('pixelfed.open_registration'),
|
'open_registration' => config('pixelfed.open_registration'),
|
||||||
'uploader' => [
|
'uploader' => [
|
||||||
|
@ -34,7 +34,8 @@ class Config {
|
||||||
'ab' => [
|
'ab' => [
|
||||||
'lc' => config('exp.lc'),
|
'lc' => config('exp.lc'),
|
||||||
'rec' => config('exp.rec'),
|
'rec' => config('exp.rec'),
|
||||||
'loops' => config('exp.loops')
|
'loops' => config('exp.loops'),
|
||||||
|
'top' => config('exp.top')
|
||||||
],
|
],
|
||||||
|
|
||||||
'site' => [
|
'site' => [
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
return [
|
return [
|
||||||
|
|
||||||
'lc' => env('EXP_LC', false),
|
'lc' => env('EXP_LC', false),
|
||||||
'rec' => env('EXP_REC', false),
|
'rec' => false,
|
||||||
'loops' => env('EXP_LOOPS', false),
|
'loops' => false,
|
||||||
|
'top' => env('EXP_TOP', false),
|
||||||
];
|
];
|
||||||
|
|
|
@ -0,0 +1,33 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
class CreateInstanceActorsTable extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::create('instance_actors', function (Blueprint $table) {
|
||||||
|
$table->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');
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue