Skip to content

Commit 9830685

Browse files
authored
Merge pull request #438 from CnCNet/feature/add-auto-save-interval-option
Database migration file.
2 parents 4a256a8 + 59cdaf5 commit 9830685

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
use App\Models\SpawnOption;
7+
use App\Models\SpawnOptionType;
8+
9+
return new class extends Migration
10+
{
11+
/**
12+
* Run the migrations.
13+
*/
14+
public function up(): void
15+
{
16+
SpawnOption::makeOne(SpawnOptionType::SPAWN_INI, "Settings.AutoSaveInterval", "Settings", "AutoSaveInterval")->save(); // 0
17+
}
18+
19+
/**
20+
* Reverse the migrations.
21+
*/
22+
public function down(): void
23+
{
24+
//
25+
}
26+
};

0 commit comments

Comments
 (0)