-
-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add upload_processing_limit config variable (#919)
* Add upload_processing_limit config variable * sync Lychee-front * bump version 4.2.2 Co-authored-by: ildyria <beviguier@gmail.com>
- Loading branch information
Showing
8 changed files
with
109 additions
and
43 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
database/migrations/2021_02_12_222948_config_upload_processing_limit.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
27
database/migrations/2021_02_13_132245_bump_version040202.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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']); | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4.2.1 | ||
4.2.2 |