Skip to content

Commit

Permalink
Adiciona migration para alteração do campo na tabela `modules.profess…
Browse files Browse the repository at this point in the history
…or_turma`
  • Loading branch information
edineivaldameri committed Jun 6, 2023
1 parent 253e650 commit 8689a8b
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

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

return new class () extends Migration {
public function up(): void
{
DB::unprepared('ALTER TABLE IF EXISTS modules.professor_turma ALTER COLUMN outras_unidades_curriculares_obrigatorias DROP NOT NULL;');
DB::unprepared('UPDATE modules.professor_turma SET outras_unidades_curriculares_obrigatorias = null WHERE outras_unidades_curriculares_obrigatorias = 0;');
}
};

0 comments on commit 8689a8b

Please sign in to comment.