This commit is contained in:
ivan-sim
2023-10-24 16:10:47 +07:00
parent 33d3bdab37
commit 134cdb072d
12 changed files with 193 additions and 24 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('drugs', function (Blueprint $table) {
$table->text('reason')->nullable()->after('status');
$table->tinyInteger('active')->default(1)->after('reason');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('drugs', function (Blueprint $table) {
$table->dropColumn('reason');
$table->dropColumn('active');
});
}
};