Merge remote-tracking branch 'origin/staging' into origin/production
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
<?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('request_log_daily_monitorings', function (Blueprint $table) {
|
||||
$table->string('doctor_1')->after('examination')->nullable();
|
||||
$table->string('doctor_2')->after('doctor_1')->nullable();
|
||||
$table->string('approval_pendamping')->after('doctor_2')->nullable();
|
||||
$table->text('description')->after('approval_pendamping')->nullable();
|
||||
$table->text('note')->after('description')->nullable();
|
||||
$table->string('temp_diagnosis')->after('note')->nullable();
|
||||
$table->string('final_diagnosis')->after('temp_diagnosis')->nullable();
|
||||
$table->string('status')->after('final_diagnosis')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('request_log_daily_monitorings', function (Blueprint $table) {
|
||||
$table->dropColumn('doctor_1');
|
||||
$table->dropColumn('doctor_2');
|
||||
$table->dropColumn('description');
|
||||
$table->dropColumn('note');
|
||||
$table->dropColumn('temp_diagnosis');
|
||||
$table->dropColumn('final_diagnosis');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,36 @@
|
||||
<?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()
|
||||
{
|
||||
if(!Schema::hasColumn('request_logs', 'specialities_id')) {
|
||||
Schema::table('request_logs', function (Blueprint $table) {
|
||||
$table->bigInteger('specialities_id')->after('created_final_by')->nullable();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
if(!Schema::hasColumn('request_logs', 'specialities_id')) {
|
||||
Schema::table('request_logs', function (Blueprint $table) {
|
||||
$table->dropColumn('specialities_id');
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,36 @@
|
||||
<?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()
|
||||
{
|
||||
if(!Schema::hasColumn('request_logs', 'dppj')) {
|
||||
Schema::table('request_logs', function (Blueprint $table) {
|
||||
$table->string('dppj', '255')->after('specialities_id')->nullable();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
if(!Schema::hasColumn('request_logs', 'dppj')) {
|
||||
Schema::table('request_logs', function (Blueprint $table) {
|
||||
$table->dropColumn('dppj');
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -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');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user