Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Migrations are not migrated Laravel 6.0 #1

Open
DerekBuntin opened this issue Sep 8, 2019 · 0 comments
Open

Migrations are not migrated Laravel 6.0 #1

DerekBuntin opened this issue Sep 8, 2019 · 0 comments

Comments

@DerekBuntin
Copy link

Following the instructions after composer require:

php artisan vendor:publish --provider="OptimistDigital\NovaRedirects\ToolServiceProvider" --tag="migrations" php artisan migrate

The migrations are not migrated and the message from php artisan is:

Nothing to migrate!

Changing the Boot method on the ToolServiceProvider class from:

$this->publishes([ __DIR__ . '/../database/migrations' => database_path('migrations'), , 'migrations');

To this:

$this->loadMigrationsFrom(__DIR__.'/../database/migrations');

As per https://laravel.com/docs/6.0/packages#migrations

Resolves the issue and allows the migrations to be migrated.

An update to Laravel 6x will no doubt resolve any issues.

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

No branches or pull requests

1 participant