mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-10-12 02:01:37 +00:00
Laravel 13: Applied relevant changes from repo diff
This commit is contained in:
@@ -49,7 +49,6 @@ return [
|
||||
'driver' => 'single',
|
||||
'path' => storage_path('logs/laravel.log'),
|
||||
'level' => 'debug',
|
||||
'days' => 14,
|
||||
'replace_placeholders' => true,
|
||||
],
|
||||
|
||||
@@ -57,7 +56,7 @@ return [
|
||||
'driver' => 'daily',
|
||||
'path' => storage_path('logs/laravel.log'),
|
||||
'level' => 'debug',
|
||||
'days' => 7,
|
||||
'max_files' => 7,
|
||||
'replace_placeholders' => true,
|
||||
],
|
||||
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('jobs', function (Blueprint $table) {
|
||||
$table->unsignedSmallInteger('attempts')->change();
|
||||
});
|
||||
|
||||
Schema::table('failed_jobs', function (Blueprint $table) {
|
||||
$table->string('connection')->change();
|
||||
$table->string('queue')->change();
|
||||
|
||||
$table->index(['connection', 'queue', 'failed_at'], 'fail_queue_time_index');
|
||||
});
|
||||
|
||||
Schema::table('cache', function (Blueprint $table) {
|
||||
$table->bigInteger('expiration')->change()->index('cache_expiration_index');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('jobs', function (Blueprint $table) {
|
||||
$table->unsignedTinyInteger('attempts')->change();
|
||||
});
|
||||
|
||||
Schema::table('failed_jobs', function (Blueprint $table) {
|
||||
$table->dropIndex('fail_queue_time_index');
|
||||
|
||||
$table->text('connection')->change();
|
||||
$table->text('queue')->change();
|
||||
});
|
||||
|
||||
Schema::table('cache', function (Blueprint $table) {
|
||||
$table->dropIndex('cache_expiration_index');
|
||||
$table->integer('expiration')->change();
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -2,6 +2,7 @@ compiled.php
|
||||
config.php
|
||||
down
|
||||
events.scanned.php
|
||||
lsp-*.php
|
||||
maintenance.php
|
||||
routes.php
|
||||
routes.scanned.php
|
||||
|
||||
Reference in New Issue
Block a user