Добавлено поле received_disease_at
This commit is contained in:
@@ -23,6 +23,7 @@ class MedicalHistoryCorrection extends Model
|
|||||||
'comment',
|
'comment',
|
||||||
'delivery_from_address',
|
'delivery_from_address',
|
||||||
'delivery_from_object_id',
|
'delivery_from_object_id',
|
||||||
|
'received_disease_at'
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $casts = [
|
protected $casts = [
|
||||||
@@ -31,7 +32,8 @@ class MedicalHistoryCorrection extends Model
|
|||||||
'extract_date' => 'datetime:Y-m-d H:i:s',
|
'extract_date' => 'datetime:Y-m-d H:i:s',
|
||||||
'death_date' => 'datetime:Y-m-d H:i:s',
|
'death_date' => 'datetime:Y-m-d H:i:s',
|
||||||
'male' => 'boolean',
|
'male' => 'boolean',
|
||||||
'delivery_from_object_id' => 'integer'
|
'delivery_from_object_id' => 'integer',
|
||||||
|
'received_disease_at' => 'datetime:Y-m-d H:i:s',
|
||||||
];
|
];
|
||||||
|
|
||||||
public function medicalHistory()
|
public function medicalHistory()
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ class ReportNursePatient extends Model
|
|||||||
'profit_type_id',
|
'profit_type_id',
|
||||||
'delivery_from_address',
|
'delivery_from_address',
|
||||||
'delivery_from_object_id',
|
'delivery_from_object_id',
|
||||||
|
'received_disease_at'
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $casts = [
|
protected $casts = [
|
||||||
@@ -33,7 +34,8 @@ class ReportNursePatient extends Model
|
|||||||
'extract_date' => 'datetime:Y-m-d H:i:s',
|
'extract_date' => 'datetime:Y-m-d H:i:s',
|
||||||
'death_date' => 'datetime:Y-m-d H:i:s',
|
'death_date' => 'datetime:Y-m-d H:i:s',
|
||||||
'male' => 'boolean',
|
'male' => 'boolean',
|
||||||
'delivery_from_object_id' => 'integer'
|
'delivery_from_object_id' => 'integer',
|
||||||
|
'received_disease_at' => 'datetime:Y-m-d H:i:s',
|
||||||
];
|
];
|
||||||
|
|
||||||
public function migrations(): \Illuminate\Database\Eloquent\Relations\HasMany
|
public function migrations(): \Illuminate\Database\Eloquent\Relations\HasMany
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
<?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->dateTime('received_disease_at')->nullable();
|
||||||
|
});
|
||||||
|
Schema::table('report_nurse_patients', function (Blueprint $table) {
|
||||||
|
$table->dateTime('received_disease_at')->nullable();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::table('medical_history_corrections', function (Blueprint $table) {
|
||||||
|
$table->dropColumn('received_disease_at');
|
||||||
|
});
|
||||||
|
Schema::table('report_nurse_patients', function (Blueprint $table) {
|
||||||
|
$table->dropColumn('received_disease_at');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user