Skip to content

Commit

Permalink
Merge pull request #785 from portabilis/fix-tipo-abandono
Browse files Browse the repository at this point in the history
[2.6] Ativa cadastros de tipos do abandono
  • Loading branch information
edersoares authored Aug 31, 2021
2 parents 6d27062 + 9ab2874 commit 6a4cea3
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions database/migrations/2021_08_27_233435_update_abandono_tipo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

class UpdateAbandonoTipo extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
DB::unprepared(
'UPDATE pmieducar.abandono_tipo abandonoTipo SET ativo = 1
WHERE abandonoTipo.ativo IS NULL;'
);
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}

0 comments on commit 6a4cea3

Please sign in to comment.