Skip to content

Commit

Permalink
Add upload_processing_limit config variable (#919)
Browse files Browse the repository at this point in the history
* Add upload_processing_limit config variable
* sync Lychee-front
* bump version 4.2.2

Co-authored-by: ildyria <beviguier@gmail.com>
  • Loading branch information
kamil4 and ildyria authored Feb 13, 2021
1 parent cc6362a commit dcad64e
Show file tree
Hide file tree
Showing 8 changed files with 109 additions and 43 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php

use App\Models\Configs;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

class ConfigUploadProcessingLimit extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
defined('INT') or define('INT', 'int');

DB::table('configs')->insert([
[
'key' => 'upload_processing_limit',
'value' => '4',
'confidentiality' => 2,
'cat' => 'Image Processing',
'type_range' => INT,
],
]);
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Configs::where('key', '=', 'upload_processing_limit')->delete();
}
}
27 changes: 27 additions & 0 deletions database/migrations/2021_02_13_132245_bump_version040202.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

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

class BumpVersion040202 extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Configs::where('key', 'version')->update(['value' => '040202']);
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Configs::where('key', 'version')->update(['value' => '040201']);
}
}
2 changes: 1 addition & 1 deletion public/Lychee-front
4 changes: 2 additions & 2 deletions public/dist/frame.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions public/dist/landing.js

Large diffs are not rendered by default.

71 changes: 36 additions & 35 deletions public/dist/main.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions public/dist/view.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion version.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.2.1
4.2.2

0 comments on commit dcad64e

Please sign in to comment.