php artisan migrate:refresh
をかけると
[Illuminate\Database\QueryException] SQLSTATE[HY000]: General error: 1 no such table: users (SQL: drop table "us ers") [PDOException] SQLSTATE[HY000]: General error: 1 no such table: users
と返ってきます。
これは、間違えて_add_published_at_to_articles_table.php
を余分に作ってしまって、pupsqliteでデータベースの中をいじっている内に
発生したエラーを読んで、更にいじっていてこうなってしまいました。
composer dump-autoloadの反応
Generating autoload files Warning: Ambiguous class resolution, "AddPublishedAtToArticlesTable" was found i n both "C:/Homestead/Laravel5.1/database/migrations/2017_09_11_180020_add_publis hed_at_to_articles_table.php" and "C:/Homestead/Laravel5.1/database/migrations/2 017_09_18_081213_add_published_at_to_articles_table.php", the first will be used .
対策になりそうな記事を見て回ったのですが直せません。
一度最初のデータベース設定からやり直したほうがいいのでしょうか。ご教示ください。
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2017/09/18 05:32 編集
2017/09/18 05:50 編集
退会済みユーザー
2017/09/18 05:58
2017/09/18 06:05
退会済みユーザー
2017/09/18 06:15
2017/09/18 06:26
退会済みユーザー
2017/09/18 11:58 編集