Skip to content

Commit

Permalink
Make necessary configs available to the front end (#1128)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil4 authored Nov 5, 2021
1 parent 40ba727 commit 815f896
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions database/migrations/2021_10_27_133121_fix_confidentiality.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

use App\Models\Configs;
use Illuminate\Database\Migrations\Migration;

class FixConfidentiality extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Configs::where('key', 'editor_enabled')->update(['confidentiality' => '0']);
Configs::where('key', 'upload_processing_limit')->update(['confidentiality' => '0']);
Configs::where('key', 'public_photos_hidden')->update(['confidentiality' => '0']);
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Configs::where('key', 'editor_enabled')->update(['confidentiality' => '2']);
Configs::where('key', 'upload_processing_limit')->update(['confidentiality' => '2']);
Configs::where('key', 'public_photos_hidden')->update(['confidentiality' => '2']);
}
}

0 comments on commit 815f896

Please sign in to comment.