From 8fd8866c3ab973d09c6f734ee178fa3db2f71554 Mon Sep 17 00:00:00 2001 From: Santosh Khanal Date: Thu, 10 Jun 2021 16:59:51 +0545 Subject: [PATCH 1/2] fix migrations stubs location --- {stubs => database/migrations}/create_snapshots_table.php.stub | 0 .../migrations}/create_stored_events_table.php.stub | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename {stubs => database/migrations}/create_snapshots_table.php.stub (100%) rename {stubs => database/migrations}/create_stored_events_table.php.stub (100%) diff --git a/stubs/create_snapshots_table.php.stub b/database/migrations/create_snapshots_table.php.stub similarity index 100% rename from stubs/create_snapshots_table.php.stub rename to database/migrations/create_snapshots_table.php.stub diff --git a/stubs/create_stored_events_table.php.stub b/database/migrations/create_stored_events_table.php.stub similarity index 100% rename from stubs/create_stored_events_table.php.stub rename to database/migrations/create_stored_events_table.php.stub From b7f422f7f32616809576ee4f7fc0f61be79046b6 Mon Sep 17 00:00:00 2001 From: Santosh Khanal Date: Thu, 10 Jun 2021 17:56:58 +0545 Subject: [PATCH 2/2] fix test for migration include --- tests/TestCase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index 12d6198c..57ab9be0 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -51,11 +51,11 @@ protected function setUpDatabase() }); Schema::dropIfExists('stored_events'); - include_once __DIR__.'/../stubs/create_stored_events_table.php.stub'; + include_once __DIR__.'/../database/migrations/create_stored_events_table.php.stub'; (new CreateStoredEventsTable())->up(); Schema::dropIfExists('snapshots'); - include_once __DIR__.'/../stubs/create_snapshots_table.php.stub'; + include_once __DIR__.'/../database/migrations/create_snapshots_table.php.stub'; (new CreateSnapshotsTable())->up(); Schema::dropIfExists('other_stored_events');