Mar 31, 2016
0
Level 4
Forge migration differences
Hi, I have been working on a project with laravel for a while now, I had a running instance within forge however now I cannot get it to deploy at all. I get the following with the below deploy script.
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'first_name' in 'field list' (SQL: insert into `users`
cd /home/forge/cafm.cloud
git pull origin master
composer install --no-interaction --no-dev --prefer-dist
php artisan migrate --force
php artisan db:seed
The field does exist in the migration and is fillable from my model.
$table->string('first_name');
Its worth adding that the migration and db:seed works perfectly only my local machine, both databases are mysql.
Many thanks, I know this will be something simple but have spent hours now trying to deploy.
Please or to participate in this conversation.