Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Commit

Permalink
migracion
Browse files Browse the repository at this point in the history
  • Loading branch information
XSlayer67 committed Nov 10, 2022
1 parent 4c2b31d commit 8f66b28
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion database/migrations/2022_09_22_152240_create_personas.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function up()
$table->boolean('donante');
$table->date('fecha_nac');
$table->Integer('id_tipo_sangre')->unsigned();
$table->foreign('id_tipo_sangre')->references('id_tipo_sangre')->on('tipo_sangre');
$table->foreign('id_tipo_sangre')->references('id_tipo_sangre')->on('tipos_sangre');
$table->timestamps();
});
}
Expand Down
5 changes: 3 additions & 2 deletions database/migrations/2022_09_26_151715_create_citas.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ public function up()
$table->increments('id_cita');
$table->dateTime('fecha_cita');
$table->string('detalles_cita');
$table->Integer('id_secretaria')->unsigned();
//TODO: arreglar el nullable
$table->Integer('id_secretaria')->unsigned()->nullable();
$table->foreign('id_secretaria')->references('id')->on('users');
$table->Integer('id_paciente')->unsigned();
$table->Integer('id_paciente')->unsigned()->nullable();
$table->foreign('id_paciente')->references('id')->on('users');
$table->timestamps();
});
Expand Down

0 comments on commit 8f66b28

Please sign in to comment.