I am trying to deploy a web app on forge and it's giving me the "Whoops,..." screen. I've looked through the logs and this is the exception I've found:
production.ERROR: exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'forge.tblFooter' doesn't exist' in /home/forge/default/vendor/laravel/framework/src/Illuminate/Database/Connection.php:319
I'm admittedly new, and I feel like it has to do with the mysql name and pw. However, when I connect to mysql, it is showing tables for password resets, subscribers, and users.
in the root folder and it returned "nothing to migrate."
In mysql, I see that it is not showing the tables:
mysql> show tables;
+-----------------+
| Tables_in_forge |
+-----------------+
| migrations |
| password_resets |
| tblSubscribers |
| users |
+-----------------+
4 rows in set (0.00 sec)
@jlrdw where am I supposed to create this? The env folder on the server has the correct information, and the laravel project states to reference the env, for example:
In migrations, there are three migrations present. It appears these are all getting migrated. However, in the database directory there are three .sql files that contain the bulk of the site information, but they are not represented on the server.
I didn't build the site, just trying to spool it up, hence a lot of the confusion.
sounds like they didn't continue building the site using migrations and have just done a few sql dumps before handing it over - they probably contain not just the data but the missing tables.
Maybe those are the last 3 backups of the sql? Go to your mysql tool of choice (phpmyadmin, sequel pro etc..) and import those sql files and I expect it will all run fairly smoothly from there.
You might want to undo what you did first of course and start with an empty db
should be fine to import into your forge db. You can leave migrations where they are, just never run any artisan migrates on it.
It's a shame because that is a huge benefit lost moving forward...unless you have the time to deconstruct the whole database and create all the migrations to bring it up to date, run migrate, then populate it with the data.