final stage
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('app_settings', function (Blueprint $table) {
|
||||
$table->string('backup_path')->default('backups')->after('show_version');
|
||||
$table->integer('backup_retention_days')->default(30)->after('backup_path');
|
||||
$table->boolean('backup_include_files')->default(true)->after('backup_retention_days');
|
||||
$table->boolean('backup_include_env')->default(true)->after('backup_include_files');
|
||||
$table->boolean('backup_auto_enabled')->default(false)->after('backup_include_env');
|
||||
$table->string('backup_auto_frequency', 20)->default('daily')->after('backup_auto_enabled');
|
||||
$table->integer('backup_auto_hour')->default(3)->after('backup_auto_frequency');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('app_settings', function (Blueprint $table) {
|
||||
$table->dropColumn(['backup_path', 'backup_retention_days', 'backup_include_files', 'backup_include_env', 'backup_auto_enabled', 'backup_auto_frequency', 'backup_auto_hour']);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user