game-village-politics-backend/database/migrations/2026_11_03_150000_barbarian...

24 lines
644 B
PHP
Raw Permalink Normal View History

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
// Barbarian waves: when the next one settles new barbarian villages near the active players.
return new class extends Migration
{
public function up(): void
{
Schema::table('worlds', function (Blueprint $table) {
$table->dateTime('barbarians_at', 3)->nullable()->after('crowns_placed_at');
});
}
public function down(): void
{
Schema::table('worlds', function (Blueprint $table) {
$table->dropColumn('barbarians_at');
});
}
};