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');
+ }
};