Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate:fres runs migrate:fresh unexpectedly #54744

Closed
mhdalik opened this issue Feb 21, 2025 · 1 comment
Closed

migrate:fres runs migrate:fresh unexpectedly #54744

mhdalik opened this issue Feb 21, 2025 · 1 comment

Comments

@mhdalik
Copy link

mhdalik commented Feb 21, 2025

Laravel Version

11.34.2

PHP Version

8.2.19

Database Driver & Version

sqlite

Description

When running the following wrong command:
php artisan migrate:fres
unexpectedly drops all tables and re-runs migrations as if the migrate:fresh command was executed.
it cause to the loss of all database tables and data in it.

Steps To Reproduce

  1. Have an existing database with tables and migrations set up.
  2. Run the following command:

php artisan migrate:fres

  1. Observe that all tables are dropped and migrations are re-run without any confirmation or warning.
@crynobone
Copy link
Member

Hi there,

Thanks for reporting the problem you are encountering, but it looks like this is a question which may be better suited for a support channel. We only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repository you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants