Fix Person

This commit is contained in:
R
2022-11-15 10:43:30 +07:00
parent 961be7568d
commit 897a531326
4 changed files with 56 additions and 8 deletions

View File

@@ -0,0 +1,34 @@
<?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()
{
Schema::table('persons', function (Blueprint $table) {
$table->float('last_weight_kg', 5, 2, true)->nullable()->after('blood_type');
$table->float('last_height_cm', 5, 2, true)->nullable()->after('blood_type');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('persons', function (Blueprint $table) {
$table->dropColumn('last_weight_kg');
$table->dropColumn('last_height_cm');
});
}
};