rtconner / laravel-tagging

Tag support for Laravel Eloquent models - Taggable Trait
MIT License
882 stars 168 forks source link

Migration Fail #195

Closed hybrid1969 closed 3 years ago

hybrid1969 commented 3 years ago

Any idea whats causing this as we had to rebuild the borked database tables and now i get this

`php artisan migrate:fresh

Illuminate\Database\QueryException

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'adult_core.tagging_tags' doesn't exist (SQL: select from tagging_tags where exists (select from tagging_tag_groups where tagging_tags.tag_group_id = tagging_tag_groups.id and slug = keyw ord) order by name asc)

at \vendor\laravel\framework\src\Illuminate\Database\Connection.php:678 674▕ // If an exception occurs when attempting to run a query, we'll format the error 675▕ // message to include the bindings with SQL, which will make this exception a 676▕ // lot more helpful to the developer instead of just the database's errors. 677▕ catch (Exception $e) { ➜ 678▕ throw new QueryException( 679▕ $query, $this->prepareBindings($bindings), $e 680▕ ); 681▕ } 682▕

• A table was not found: You might have forgotten to run your migrations. You can run your migrations using php artisan migrate. https://laravel.com/docs/master/migrations#running-migrations

1 [internal]:0 Illuminate\Foundation\Application::Illuminate\Foundation{closure}()

2 \vendor\laravel\framework\src\Illuminate\Database\Connection.php:338 PDOException::("SQLSTATE[42S02]: Base table or view not found: 1146 Table 'tagging_tags' doesn't exist") `

I alss cannot do any kind of migration and composer dump-autoload also fails with the same error?

hybrid1969 commented 3 years ago

I fixed this by clearing out all related files and reinstalling