add two item in mission and create migration for them

This commit is contained in:
faezeh
2026-06-21 13:49:01 +03:30
parent 2aa9ae1455
commit bab99f7f89
4 changed files with 35 additions and 5 deletions

View File

@@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('missions', function (Blueprint $table) {
$table->unsignedInteger('item_id')->nullable();
$table->unsignedInteger('sub_item_id')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('missions', function (Blueprint $table) {
//
});
}
};