Files
onboard/database/migrations/2026_07_08_082352_add_column_delivery.php

47 lines
1.6 KiB
PHP

<?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('medical_history_nurses', 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('medical_history_nurses', 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');
});
}
};