game-village-politics-backend/database/migrations/2026_10_31_090000_raids.php

24 lines
629 B
PHP
Raw Normal View History

<?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();
});
}
};