Merge branch 'staging' of https://dev.sismedika.online/febio/aso into staging

This commit is contained in:
2025-02-18 11:16:26 +07:00
15 changed files with 239 additions and 61 deletions

View File

@@ -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');
});
}
}
};

View File

@@ -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');
});
}
}
};