Skip to content

Commit fbb3484

Browse files
committed
[DB] Move view refresh to a new migration as it relies on subsequent changes - fixes #894
1 parent 6342226 commit fbb3484

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

database/migrations/2020_06_01_143931_database_schema_at_end_v5.php

-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ public function up()
2121

2222
echo "*** Importing base IXP Manager schema...\n";
2323
DB::connection()->getPdo()->exec( file_get_contents( database_path('schema/2021-as-at-end-v5.sql') ) );
24-
25-
Artisan::call('update:reset-mysql-views' );
26-
2724
}
2825

2926
/**
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
return new class extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*
12+
* @return void
13+
*/
14+
public function up()
15+
{
16+
Artisan::call('update:reset-mysql-views' );
17+
}
18+
19+
/**
20+
* Reverse the migrations.
21+
*
22+
* @return void
23+
*/
24+
public function down()
25+
{
26+
//
27+
}
28+
};

0 commit comments

Comments
 (0)