Skip to content

Migrate:fresh doesn't ask to create database if it doesn't exist #50401

@mokhosh

Description

@mokhosh

Laravel Version

10.x

PHP Version

8.3.3

Database Driver & Version

No response

Description

Currently when you run php artisan migrate you get a nice suggestion to create the database if it doesn't exist, but when you run php artisan migrate:fresh you get an exception, which is not consistent.

This becomes a bigger issue if you use Taylor's mfs alias, and default to using it whenever you need to just not worry about the database and nuke it and seed it.

Steps To Reproduce

  • Create a new Laravel project
  • Run mfs if you have the alias, or php artisan migrate:fresh --seed if you love pain

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions