From 41d2d2fe629cdfddb471fe9d5fbb9467df17514b Mon Sep 17 00:00:00 2001 From: Barry O'Donovan Date: Wed, 29 May 2024 10:26:47 +0100 Subject: [PATCH] [DB] Move view refresh to a new migration as it relies on subsequent changes - fixes inex/IXP-Manager#894 --- ...06_01_143931_database_schema_at_end_v5.php | 3 -- .../2024_05_29_102028_reset-views.php | 28 +++++++++++++++++++ 2 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 database/migrations/2024_05_29_102028_reset-views.php diff --git a/database/migrations/2020_06_01_143931_database_schema_at_end_v5.php b/database/migrations/2020_06_01_143931_database_schema_at_end_v5.php index b4121adfe..4849e0738 100644 --- a/database/migrations/2020_06_01_143931_database_schema_at_end_v5.php +++ b/database/migrations/2020_06_01_143931_database_schema_at_end_v5.php @@ -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' ); - } /** diff --git a/database/migrations/2024_05_29_102028_reset-views.php b/database/migrations/2024_05_29_102028_reset-views.php new file mode 100644 index 000000000..0caab0f2f --- /dev/null +++ b/database/migrations/2024_05_29_102028_reset-views.php @@ -0,0 +1,28 @@ +