close
The Wayback Machine - https://web.archive.org/web/20210128183933/https://github.com/laravel/framework/discussions/35992
Skip to content
1

MySQL schema dump file should be used by default when specific database connection is used #35992

kwk9892 asked this question in Ideas
MySQL schema dump file should be used by default when specific database connection is used #35992
Jan 22, 2021 · 0 answers

I used php artisan schema:dump --prune to squash migrations

When I try to migrate using php artisan migrate:fresh It works where the schema file in database/schema/ is used

But 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 have migrations 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.

Replies

0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
💡
Ideas
1 participant
Beta