This commit is contained in:
2024-08-21 13:44:24 +07:00
parent ff05c31914
commit e4d54ab78c
2 changed files with 36 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
<?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('drugs', function (Blueprint $table) {
$table->string('unit')->nullable()->after('generic_name');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('drugs', function (Blueprint $table) {
$table->dropColumn('unit');
});
}
};