Update from to last version


I’ve tried upgrading from version to different versions but I always get errors and I can not update. Some advice?

If you email your error log (storage/logs/laravel-error.log) to contact@invoiceninja.com we’ll try to help with the errors.

This is what I do to update from to ninja-v2.9.3. I’m trying to update locally in http://ninja.dev:

1.- copy files from ninja-v2.9.3.zip to the root of my current installation
2.- if I go to http://ninja.dev, error 403 forbidden, if I go to /public/update: error 500
3.- I copy the content of .env.example into .env. I also change the root of http://ninja.dev to /public/
4.- I tried https://www.invoiceninja.com/forums/topic/issue-after-updating-2-5-0-3-v2-8-1/ and I have commented lines 13 to to 22 in database/migrations/2016_03_22_168362_add_documents.php and I get the same errors but I do not know what else I have to comment:

[2017-01-05 00:47:42] production.ERROR: Illuminate\Database\QueryException [HY000] : /Users/me/ninja/vendor/laravel/framework/src/Illuminate/Database/Connection.php [Line 729] => SQLSTATE[HY000]: General error: 1005 Can’t create table ‘poselab_ninja.#sql-354e_4d’ (errno: 150) (SQL: alter table documents add constraint documents_account_id_foreign foreign key (account_id) references accounts (id) on delete cascade) {“context”:“PHP”,“user_id”:0,“account_id”:0,“user_name”:"",“method”:“GET”,“url”:“http://ninja.dev/update",“user_agent”:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36”,“ip”:"::1",“count”:1} []

You can try commenting out the foreign keys in the migration file.