24 lines
629 B
PHP
24 lines
629 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
use Illuminate\Database\Migrations\Migration;
|
||
|
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
|
use Illuminate\Support\Facades\Schema;
|
||
|
|
|
||
|
|
// Raiders from barbarian camps march without a player.
|
||
|
|
return new class extends Migration
|
||
|
|
{
|
||
|
|
public function up(): void
|
||
|
|
{
|
||
|
|
Schema::table('movements', function (Blueprint $table) {
|
||
|
|
$table->unsignedBigInteger('player_id')->nullable()->change();
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
public function down(): void
|
||
|
|
{
|
||
|
|
Schema::table('movements', function (Blueprint $table) {
|
||
|
|
$table->unsignedBigInteger('player_id')->nullable(false)->change();
|
||
|
|
});
|
||
|
|
}
|
||
|
|
};
|