-
Notifications
You must be signed in to change notification settings - Fork 458
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #672 from portabilis/portabilis-patch-2019-10-18
[2.2] Portabilis patch 18/10/2019
- Loading branch information
Showing
8 changed files
with
128 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
database/migrations/2019_10_10_151206_update_higher_education_name.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php | ||
|
||
use Illuminate\Support\Facades\Schema; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Database\Migrations\Migration; | ||
|
||
class UpdateHigherEducationName extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
DB::update(" | ||
UPDATE modules.educacenso_curso_superior | ||
SET nome = CASE curso_id | ||
WHEN '142C01' THEN 'Pedagogia (Ciências da Educação)' | ||
WHEN '145F01' THEN 'Ciências Biológicas' | ||
WHEN '145F02' THEN 'Ciências Naturais' | ||
WHEN '145F05' THEN 'Educação Religiosa' | ||
WHEN '145F08' THEN 'Filosofia' | ||
WHEN '145F09' THEN 'Física' | ||
WHEN '145F10' THEN 'Geografia' | ||
WHEN '145F11' THEN 'História' | ||
WHEN '145F15' THEN 'Letras - Língua Portuguesa' | ||
WHEN '145F18' THEN 'Matemática' | ||
WHEN '145F21' THEN 'Química' | ||
WHEN '145F24' THEN 'Ciências Sociais' | ||
WHEN '146P01' THEN 'Licenciatura para a Educação Profissional e Tecnológica' | ||
WHEN '210A01' THEN 'Bacharelado Interdisciplinar em Artes' | ||
WHEN '220H01' THEN 'Bacharelado Interdisciplinar Ciências Humanas' | ||
WHEN '314E02' THEN 'Ciências Econômicas' | ||
WHEN '623E01' THEN 'Engenharia Florestal' | ||
WHEN '720S01' THEN 'Bacharelado Interdisciplinar Ciências da Saúde' | ||
END | ||
WHERE curso_id IN ( | ||
'142C01', '145F01', '145F02', '145F05', '145F08', '145F09', | ||
'145F10', '145F11', '145F18', '145F21', '145F24', '146P01', | ||
'210A01', '220H01', '314E02', '623E01', '720S01', '145F15' | ||
) | ||
"); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
// | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters