Commit 338c2a5030dfaab8fdb260532969b296eaff6534

Authored by Everton Muniz
1 parent d9817f7b
Exists in 2.8 and in 6 other branches 2.2, 2.3, 2.4, 2.5, 2.6, 2.7

Cria configuração para ordenação dos alunos nos relatórios

config/legacy.php
... ... @@ -204,6 +204,7 @@ return [
204 204 'password' => '',
205 205 'logo_name' => '',
206 206 ],
  207 + 'order_student_by_enrollment_sequential' => false,
207 208 ],
208 209  
209 210 ];
... ...
database/migrations/2019_10_14_172720_create_setting_order_student_by_enrollment_sequential.php 0 → 100644
... ... @@ -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 +}
... ...