Добавлены поля delivery_from_address и delivery_from_object_id
This commit is contained in:
@@ -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');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user