Commit 1eecc992927fd959aedc7c1b15adcd0038e3c38e
1 parent
dc92233f
Exists in
2.9
and in
7 other branches
Adiciona process 1003
Showing
2 changed files
with
35 additions
and
0 deletions
Show diff stats
app/Process.php
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 | +} | ... | ... |