feat: fix

This commit is contained in:
Leon 2025-12-19 12:04:58 +01:00
parent 11c1c850c9
commit aeebaf64a4
1 changed files with 6 additions and 4 deletions

View File

@ -12,10 +12,12 @@ return new class extends Migration
public function up(): void public function up(): void
{ {
Schema::table('hunts', function (Blueprint $table) { Schema::table('hunts', function (Blueprint $table) {
if (!Schema::hasColumn('hunts', 'id')) {
$table->id(); $table->id();
}
if (!Schema::hasColumn('hunts', 'xp')) {
$table->unsignedBigInteger('xp')->default(0); $table->unsignedBigInteger('xp')->default(0);
$table->string('status')->default('draft'); }
}); });
} }