Commit 587d39f5c21c287715654e6beed7ab65c219cc6f
1 parent
59ac3096
Exists in
2.9
and in
7 other branches
Altera nome do arquivo e class da migration
Showing
2 changed files
with
31 additions
and
31 deletions
Show diff stats
database/migrations/2019_09_26_142534_altera_view_situacao.php
... | ... | @@ -1,31 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -use Illuminate\Support\Facades\DB; | |
4 | -use Illuminate\Database\Migrations\Migration; | |
5 | - | |
6 | -class AlteraViewSituacao extends Migration | |
7 | -{ | |
8 | - /** | |
9 | - * Run the migrations. | |
10 | - * | |
11 | - * @return void | |
12 | - */ | |
13 | - public function up() | |
14 | - { | |
15 | - $sql = file_get_contents(database_path('sqls/views/relatorio.view_situacao-2019-09-30.sql')); | |
16 | - | |
17 | - DB::unprepared($sql); | |
18 | - } | |
19 | - | |
20 | - /** | |
21 | - * Reverse the migrations. | |
22 | - * | |
23 | - * @return void | |
24 | - */ | |
25 | - public function down() | |
26 | - { | |
27 | - $sql = file_get_contents(database_path('sqls/views/relatorio.view_situacao-2019-09-26.sql')); | |
28 | - | |
29 | - DB::unprepared($sql); | |
30 | - } | |
31 | -} |
database/migrations/2019_09_26_142534_remove_condicao_view_situacao.php
0 → 100755
... | ... | @@ -0,0 +1,31 @@ |
1 | +<?php | |
2 | + | |
3 | +use Illuminate\Support\Facades\DB; | |
4 | +use Illuminate\Database\Migrations\Migration; | |
5 | + | |
6 | +class RemoveCondicaoViewSituacao extends Migration | |
7 | +{ | |
8 | + /** | |
9 | + * Run the migrations. | |
10 | + * | |
11 | + * @return void | |
12 | + */ | |
13 | + public function up() | |
14 | + { | |
15 | + $sql = file_get_contents(database_path('sqls/views/relatorio.view_situacao-2019-09-30.sql')); | |
16 | + | |
17 | + DB::unprepared($sql); | |
18 | + } | |
19 | + | |
20 | + /** | |
21 | + * Reverse the migrations. | |
22 | + * | |
23 | + * @return void | |
24 | + */ | |
25 | + public function down() | |
26 | + { | |
27 | + $sql = file_get_contents(database_path('sqls/views/relatorio.view_situacao-2019-09-26.sql')); | |
28 | + | |
29 | + DB::unprepared($sql); | |
30 | + } | |
31 | +} | ... | ... |