This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateExameImagemHistoricoAlteracaoTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('exame_imagem_historico_alteracao', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('agendamento_id')->constrained('exame_imagem_agendamento');
|
||||
$table->foreignId('paciente_id')->constrained('cadastro_paciente');
|
||||
$table->foreignId('agendamento_exame_id')->constrained('exame_imagem_agendamento_exame');
|
||||
$table->string('resultado', 3000)->nullable();
|
||||
$table->string('arquivo', 100)->nullable();
|
||||
$table->string('laudo_nome', 1500);
|
||||
$table->date('laudo_data')->nullable();
|
||||
$table->foreignId('usuario_id')->nullable()->constrained('cadastro_usuario');
|
||||
|
||||
MigrationUtil::addCommonFields($table);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('exame_imagem_historico_alteracao');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AlterLaudoNomeNullableToExameImagemHistoricoAlteracaoTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('exame_imagem_historico_alteracao', function (Blueprint $table) {
|
||||
|
||||
$table->string('laudo_nome', 1500)->nullable()->change();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('exame_imagem_historico_alteracao', function (Blueprint $table) {
|
||||
|
||||
$table->string('laudo_nome', 1500)->change();
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user