maping drugs

This commit is contained in:
2025-02-20 16:17:05 +07:00
parent e56910e0c1
commit a0a7c3b735
3 changed files with 46 additions and 4 deletions

View File

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