Добавлена возможность сохранения добавленного пациента

Исправлена инкрементация идентификаторов
This commit is contained in:
brusnitsyn
2026-05-05 21:03:14 +09:00
parent 717641e4bb
commit fe2264dfce
4 changed files with 72 additions and 9 deletions

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('medical_history_nurses', function (Blueprint $table) {
$table->bigInteger('latest_migration_id')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('medical_history_nurses', function (Blueprint $table) {
$table->dropColumn('latest_migration_id');
});
}
};