Skip to content

Commit

Permalink
[DB] Move view refresh to a new migration as it relies on subsequent …
Browse files Browse the repository at this point in the history
…changes - fixes #894
  • Loading branch information
barryo committed May 29, 2024
1 parent 89b4a3e commit 41d2d2f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ public function up()

echo "*** Importing base IXP Manager schema...\n";
DB::connection()->getPdo()->exec( file_get_contents( database_path('schema/2021-as-at-end-v5.sql') ) );

Artisan::call('update:reset-mysql-views' );

}

/**
Expand Down
28 changes: 28 additions & 0 deletions database/migrations/2024_05_29_102028_reset-views.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Artisan::call('update:reset-mysql-views' );
}

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

0 comments on commit 41d2d2f

Please sign in to comment.