Сохранение адреса и objectid ФИАС

This commit is contained in:
brusnitsyn
2026-07-08 13:29:30 +09:00
parent be875c0b1a
commit 18638dfcab
5 changed files with 75 additions and 13 deletions

View File

@@ -15,6 +15,10 @@ return new class extends Migration
$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();
@@ -30,6 +34,10 @@ return new class extends Migration
$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');

View File

@@ -14,6 +14,9 @@ return new class extends Migration
Schema::table('medical_history_corrections', function (Blueprint $table) {
$table->dateTime('received_disease_at')->nullable();
});
Schema::table('medical_history_nurses', function (Blueprint $table) {
$table->dateTime('received_disease_at')->nullable();
});
Schema::table('report_nurse_patients', function (Blueprint $table) {
$table->dateTime('received_disease_at')->nullable();
});
@@ -27,6 +30,9 @@ return new class extends Migration
Schema::table('medical_history_corrections', function (Blueprint $table) {
$table->dropColumn('received_disease_at');
});
Schema::table('medical_history_nurses', function (Blueprint $table) {
$table->dropColumn('received_disease_at');
});
Schema::table('report_nurse_patients', function (Blueprint $table) {
$table->dropColumn('received_disease_at');
});