Commit 1eecc992927fd959aedc7c1b15adcd0038e3c38e

Authored by Matheus Nicoski
1 parent dc92233f
Exists in 2.9 and in 7 other branches 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8

Adiciona process 1003

app/Process.php
... ... @@ -17,6 +17,7 @@ class Process
17 17  
18 18 const ENROLLMENT_HISTORY = 1001;
19 19 const ATTENDED_CANDIDATE = 1002;
  20 + const BACK_TO_QUEUE = 1003;
20 21 const UNDO_STUDENT_UNIFICATION = 2001;
21 22 const EXEMPTION_LIST = 2002;
22 23 }
... ...
database/migrations/2019_10_02_153450_add_menu_to_allow_student_return_to_queue.php 0 → 100755
... ... @@ -0,0 +1,34 @@
  1 +<?php
  2 +
  3 +use App\Menu;
  4 +use App\Process;
  5 +use Illuminate\Database\Migrations\Migration;
  6 +
  7 +class AddMenuToAllowStudentReturnToQueue extends Migration
  8 +{
  9 + /**
  10 + * Run the migrations.
  11 + *
  12 + * @return void
  13 + */
  14 + public function up()
  15 + {
  16 + Menu::query()->create([
  17 + 'parent_id' => Menu::query()->where('process', Process::MENU_SCHOOL)->firstOrFail()->getKey(),
  18 + 'title' => 'Permite voltar para "Em Espera" candidaturas do Reserva de Vagas já atendidas',
  19 + 'process' => Process::BACK_TO_QUEUE,
  20 + ]);
  21 + }
  22 +
  23 + /**
  24 + * Reverse the migrations.
  25 + *
  26 + * @return void
  27 + */
  28 + public function down()
  29 + {
  30 + Menu::query()
  31 + ->where('process', Process::BACK_TO_QUEUE)
  32 + ->delete();
  33 + }
  34 +}
... ...