X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=database%2Fmigrations%2F2023_02_17_153122_create_episode_players_table.php;h=90c1071d7e8295015f9abc0eb1298ff1e73edb37;hb=f0f4a7472a25ed7c45ed59aa205c78fa555d7f14;hp=0739904581be3814a8d7558e407250792f503770;hpb=071885a30f24b980699b337d9cdb65952f8c6c42;p=alttp.git diff --git a/database/migrations/2023_02_17_153122_create_episode_players_table.php b/database/migrations/2023_02_17_153122_create_episode_players_table.php index 0739904..90c1071 100644 --- a/database/migrations/2023_02_17_153122_create_episode_players_table.php +++ b/database/migrations/2023_02_17_153122_create_episode_players_table.php @@ -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'); + } };