Добавлены поля delivery_from_address и delivery_from_object_id

This commit is contained in:
brusnitsyn
2026-07-08 08:56:22 +09:00
parent dbc1883eaf
commit 7aed16f275
3 changed files with 50 additions and 5 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.
*/
public function up(): void
{
Schema::table('medical_history_corrections', function (Blueprint $table) {
$table->string('delivery_from_address')->nullable();
$table->unsignedBigInteger('delivery_from_object_id')->nullable();
});
Schema::table('report_nurse_patients', function (Blueprint $table) {
$table->string('delivery_from_address')->nullable();
$table->unsignedBigInteger('delivery_from_object_id')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('medical_history_corrections', function (Blueprint $table) {
$table->dropColumn('delivery_from_address');
$table->dropColumn('delivery_from_object_id');
});
Schema::table('report_nurse_patients', function (Blueprint $table) {
$table->dropColumn('delivery_from_address');
$table->dropColumn('delivery_from_object_id');
});
}
};