<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration {
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up(): void
    {
        Schema::table('patient_weight_track', function (Blueprint $table) {
            $table->unsignedBigInteger('ethnicity_id')->nullable()->after('member_id');
        });

    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down(): void
    {
        Schema::table('patient_weight_track', function (Blueprint $table) {
            $table->dropColumn('ethnicity_id');
        });
    }
};
