feat: fix
This commit is contained in:
parent
11c1c850c9
commit
aeebaf64a4
|
|
@ -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) {
|
||||||
$table->id();
|
if (!Schema::hasColumn('hunts', 'id')) {
|
||||||
$table->unsignedBigInteger('xp')->default(0);
|
$table->id();
|
||||||
$table->string('status')->default('draft');
|
}
|
||||||
|
if (!Schema::hasColumn('hunts', 'xp')) {
|
||||||
|
$table->unsignedBigInteger('xp')->default(0);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue