From 6921e3dedd92906ba5ee048cd1689cf57a50aa8f Mon Sep 17 00:00:00 2001 From: Guilherme Silva Date: Sat, 9 Apr 2022 09:58:19 -0300 Subject: [PATCH] =?UTF-8?q?Cria=C3=A7=C3=A3o=20de=20Cota=20para=20recem=20?= =?UTF-8?q?doutores?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Evento.php | 3 +- ...22_04_05_123239_add_cota_doutor_evento.php | 32 +++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 database/migrations/2022_04_05_123239_add_cota_doutor_evento.php diff --git a/app/Evento.php b/app/Evento.php index 6724cea..2970de0 100755 --- a/app/Evento.php +++ b/app/Evento.php @@ -17,7 +17,8 @@ class Evento extends Model 'resultado_final','resultado_preliminar', 'coordenadorId', 'numMaxTrabalhos', 'numMaxCoautores', 'hasResumo', 'criador_id', 'numParticipantes', 'dt_inicioRelatorioParcial', 'dt_fimRelatorioParcial', 'dt_inicioRelatorioFinal', 'dt_fimRelatorioFinal', - 'formAvaliacaoExterno', 'formAvaliacaoInterno' + 'formAvaliacaoExterno', 'formAvaliacaoInterno', + 'cotaDoutor' ]; public function endereco(){ diff --git a/database/migrations/2022_04_05_123239_add_cota_doutor_evento.php b/database/migrations/2022_04_05_123239_add_cota_doutor_evento.php new file mode 100644 index 0000000..82cf319 --- /dev/null +++ b/database/migrations/2022_04_05_123239_add_cota_doutor_evento.php @@ -0,0 +1,32 @@ +boolean('cotaDoutor')->default(false); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('eventos', function (Blueprint $table) { + $table->dropColumn('cotaDoutor'); + }); + } +} -- GitLab