Добавлен столбец Тип оплаты

This commit is contained in:
brusnitsyn
2026-06-25 14:08:34 +09:00
parent d5deaca093
commit 39fac0af7a
2 changed files with 68 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('medical_history_corrections', function (Blueprint $table) {
$table->integer('profit_type_id')->default(0);
});
Schema::table('medical_history_nurses', function (Blueprint $table) {
$table->integer('profit_type_id')->default(0);
});
Schema::table('report_duty_patients', function (Blueprint $table) {
$table->integer('profit_type_id')->default(0);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('medical_history_corrections', function (Blueprint $table) {
$table->dropColumn('profit_type_id');
});
Schema::table('medical_history_nurses', function (Blueprint $table) {
$table->dropColumn('profit_type_id');
});
Schema::table('report_duty_patients', function (Blueprint $table) {
$table->dropColumn('profit_type_id');
});
}
};

View File

@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('report_duty_patients', function (Blueprint $table) {
$table->integer('profit_type_id')->default(0);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('report_duty_patients', function (Blueprint $table) {
$table->dropColumn('profit_type_id');
});
}
};