Replies: 1 comment
-
I was about to ask the same question here |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I used
php artisan schema:dump --prune
to squash migrationsWhen I try to migrate using
php artisan migrate:fresh
It works where the schema file indatabase/schema/
is usedBut when I try to migrate using a specific database connection it fails.
Command used:
php artisan migrate:fresh --database=mysql_testing
I know I can use
--schema-path
to specify the dump file.In my Testing Modules, I used
use RefreshDatabase
and my database always only havemigrations
table.Other tables are all dropped.
Is there a way to specify the schema dump file so that it will be used every time a migration runs regardless of the database connection specified.
Beta Was this translation helpful? Give feedback.
All reactions