Commit d9817f7b124b7b8427938934e50867649a51b479
Committed by
GitHub
Exists in
2.9
and in
7 other branches
Merge pull request #6481 from portabilis/issue-6467
Atualiza nome do curso superior de acordo com a tabela do educacenso
Showing
1 changed file
with
55 additions
and
0 deletions
Show diff stats
database/migrations/2019_10_10_151206_update_higher_education_name.php
0 → 100755
@@ -0,0 +1,55 @@ | @@ -0,0 +1,55 @@ | ||
1 | +<?php | ||
2 | + | ||
3 | +use Illuminate\Support\Facades\Schema; | ||
4 | +use Illuminate\Database\Schema\Blueprint; | ||
5 | +use Illuminate\Database\Migrations\Migration; | ||
6 | + | ||
7 | +class UpdateHigherEducationName extends Migration | ||
8 | +{ | ||
9 | + /** | ||
10 | + * Run the migrations. | ||
11 | + * | ||
12 | + * @return void | ||
13 | + */ | ||
14 | + public function up() | ||
15 | + { | ||
16 | + DB::update(" | ||
17 | + UPDATE modules.educacenso_curso_superior | ||
18 | + SET nome = CASE curso_id | ||
19 | + WHEN '142C01' THEN 'Pedagogia (Ciências da Educação)' | ||
20 | + WHEN '145F01' THEN 'Ciências Biológicas' | ||
21 | + WHEN '145F02' THEN 'Ciências Naturais' | ||
22 | + WHEN '145F05' THEN 'Educação Religiosa' | ||
23 | + WHEN '145F08' THEN 'Filosofia' | ||
24 | + WHEN '145F09' THEN 'Física' | ||
25 | + WHEN '145F10' THEN 'Geografia' | ||
26 | + WHEN '145F11' THEN 'História' | ||
27 | + WHEN '145F15' THEN 'Letras - Língua Portuguesa' | ||
28 | + WHEN '145F18' THEN 'Matemática' | ||
29 | + WHEN '145F21' THEN 'Química' | ||
30 | + WHEN '145F24' THEN 'Ciências Sociais' | ||
31 | + WHEN '146P01' THEN 'Licenciatura para a Educação Profissional e Tecnológica' | ||
32 | + WHEN '210A01' THEN 'Bacharelado Interdisciplinar em Artes' | ||
33 | + WHEN '220H01' THEN 'Bacharelado Interdisciplinar Ciências Humanas' | ||
34 | + WHEN '314E02' THEN 'Ciências Econômicas' | ||
35 | + WHEN '623E01' THEN 'Engenharia Florestal' | ||
36 | + WHEN '720S01' THEN 'Bacharelado Interdisciplinar Ciências da Saúde' | ||
37 | + END | ||
38 | + WHERE curso_id IN ( | ||
39 | + '142C01', '145F01', '145F02', '145F05', '145F08', '145F09', | ||
40 | + '145F10', '145F11', '145F18', '145F21', '145F24', '146P01', | ||
41 | + '210A01', '220H01', '314E02', '623E01', '720S01', '145F15' | ||
42 | + ) | ||
43 | + "); | ||
44 | + } | ||
45 | + | ||
46 | + /** | ||
47 | + * Reverse the migrations. | ||
48 | + * | ||
49 | + * @return void | ||
50 | + */ | ||
51 | + public function down() | ||
52 | + { | ||
53 | + // | ||
54 | + } | ||
55 | +} |