]> git.localhorst.tv Git - alttp.git/blobdiff - database/migrations/2023_02_17_153122_create_episode_players_table.php
restructure map for future
[alttp.git] / database / migrations / 2023_02_17_153122_create_episode_players_table.php
index 0739904581be3814a8d7558e407250792f503770..90c1071d7e8295015f9abc0eb1298ff1e73edb37 100644 (file)
@@ -6,31 +6,31 @@ use Illuminate\Support\Facades\Schema;
 
 return new class extends Migration
 {
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('episode_players', function (Blueprint $table) {
-            $table->id();
+       /**
+        * Run the migrations.
+        *
+        * @return void
+        */
+       public function up()
+       {
+               Schema::create('episode_players', function (Blueprint $table) {
+                       $table->id();
                        $table->foreignId('episode_id')->constrained();
                        $table->foreignId('user_id')->nullable()->default(null)->constrained();
                        $table->string('name_override')->default('');
                        $table->string('stream_override')->default('');
                        $table->string('ext_id')->nullable()->default(null);
-            $table->timestamps();
-        });
-    }
+                       $table->timestamps();
+               });
+       }
 
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('episode_players');
-    }
+       /**
+        * Reverse the migrations.
+        *
+        * @return void
+        */
+       public function down()
+       {
+               Schema::dropIfExists('episode_players');
+       }
 };