]> git.localhorst.tv Git - alttp.git/blob - database/migrations/2022_05_14_121327_create_alttp_seeds_table.php
twitch chat bot controls
[alttp.git] / database / migrations / 2022_05_14_121327_create_alttp_seeds_table.php
1 <?php
2
3 use Illuminate\Database\Migrations\Migration;
4 use Illuminate\Database\Schema\Blueprint;
5 use Illuminate\Support\Facades\Schema;
6
7 return new class extends Migration
8 {
9         /**
10          * Run the migrations.
11          *
12          * @return void
13          */
14         public function up()
15         {
16                 Schema::create('alttp_seeds', function (Blueprint $table) {
17                         $table->id();
18                         $table->binary('hash');
19                         $table->string('generator');
20                         $table->string('preset');
21                         $table->boolean('race')->default(false);
22                         $table->boolean('mystery')->default(false);
23                         $table->string('seed');
24                         $table->text('settings');
25                         $table->string('status')->default('pending');
26                         $table->text('error_detail')->nullable()->default(null);
27                         $table->timestamps();
28                         $table->unique('hash');
29                 });
30         }
31
32         /**
33          * Reverse the migrations.
34          *
35          * @return void
36          */
37         public function down()
38         {
39                 Schema::dropIfExists('alttp_seeds');
40         }
41 };