Commit 338c2a5030dfaab8fdb260532969b296eaff6534
1 parent
d9817f7b
Exists in
2.9
and in
7 other branches
Cria configuração para ordenação dos alunos nos relatórios
Showing
2 changed files
with
35 additions
and
0 deletions
Show diff stats
config/legacy.php
database/migrations/2019_10_14_172720_create_setting_order_student_by_enrollment_sequential.php
0 → 100644
| @@ -0,0 +1,34 @@ | @@ -0,0 +1,34 @@ | ||
| 1 | +<?php | ||
| 2 | + | ||
| 3 | +use App\Setting; | ||
| 4 | +use Illuminate\Support\Facades\Schema; | ||
| 5 | +use Illuminate\Database\Schema\Blueprint; | ||
| 6 | +use Illuminate\Database\Migrations\Migration; | ||
| 7 | + | ||
| 8 | +class CreateSettingOrderStudentByEnrollmentSequential extends Migration | ||
| 9 | +{ | ||
| 10 | + /** | ||
| 11 | + * Run the migrations. | ||
| 12 | + * | ||
| 13 | + * @return void | ||
| 14 | + */ | ||
| 15 | + public function up() | ||
| 16 | + { | ||
| 17 | + Setting::create([ | ||
| 18 | + 'key' => 'legacy.report.order_student_by_enrollment_sequential', | ||
| 19 | + 'value' => '0', | ||
| 20 | + 'type' => 'string', | ||
| 21 | + 'description' => 'Indica se os alunos serão ordenados pelo campo sequencial_fechamento de matricula_turma' | ||
| 22 | + ]); | ||
| 23 | + } | ||
| 24 | + | ||
| 25 | + /** | ||
| 26 | + * Reverse the migrations. | ||
| 27 | + * | ||
| 28 | + * @return void | ||
| 29 | + */ | ||
| 30 | + public function down() | ||
| 31 | + { | ||
| 32 | + Setting::where('key', 'legacy.report.order_student_by_enrollment_sequential')->delete(); | ||
| 33 | + } | ||
| 34 | +} |