QueryException in Connection.php line 647: Database (/database/database.sqlite) does not exist. (SQL: select * from "products"
Now that I have removed database(and all subfolders seeds/migrations/factories) completely by mistake. How to revert back to refresh installed status as php artisan migrate no longer works... I tried to manually add back those folders and files from another project but does not work anymore?
EDIT: Solved, i just need to find out why after adding items in sqlite, broswer shows
QueryException in Connection.php line 647:
Database (/database/database.sqlite) does not exist. (SQL: select * from "products")
I suppose since you are asking that you have not been using a version control system?
Next, ask yourself do you need the migrations files at all if you are not using version control in the first instance? Your database is already existing, so that is your "truth".
@niceseb You always can try to undelete (restore) the deleted files using appropriate tool(s), since the files aren't deleted physically from your disk but just have been made unvisible.
I already did both of these commands just now, and although migration was successful, when i went to the browser, the above message is what was observed.
If you are seeing this message QueryException in Connection.php line 647: Database (database/database.sqlite) does not exist. (SQL: select * from "products") but your migrations successfully ran, then there is something else missing.
I can't help you solve THIS problem, but I can help you solve the root cause.
Learn GIT and use it. I don't believe you have to necessarily push to a repo to gain the benefits of source control since it keeps a local repo for you.
Can you give some more information about your environment, i.e. .env? It is incongruous that your migrations are running successfully and you are getting that error. If your database is missing, then the migrations should not run without an error.