outl1ne / nova-settings

A Laravel Nova tool for editing custom settings using native Nova fields.
MIT License
278 stars 97 forks source link

artisan test Error "Table 'test.nova_settings' doesn't exist" #171

Closed JesperFiltenborg closed 1 year ago

JesperFiltenborg commented 1 year ago

When i run my test the nova_settings table is not migrating.

I can also run artisan migrate --path=vendor/outl1ne/nova-settings/database/migrations --env=testing But nothing migrates.

The migrations work for the rest of the project.

JesperFiltenborg commented 1 year ago

My bad needed to add following in NovaServiceProvider if (Schema::hasTable('nova_settings')) { $this->novaSettings(); }