SQLSTATE[42000]: Syntax error or access violation: 1075 Incorrect table definition; there can be only one auto column and it must be defined as a key

With my observation, I would say you should remove default value you added to the your foreign fields from (for example):

$table->integer('thnajrn_id', 10)->unsigned(); 

To:

$table->integer('thnajrn_id')->unsigned();

PS: With a similar experience, I know presently this works with one of the projects I work with in Laravel 5.2.*

Hope this helps :)


When you use $table->integer('thnajrn_id', 10)->unsigned(); this means your setting the second parameter as true which represents AutoIncrement

try

table->integer('thnajrn_id')->length(10)->unsigned();

More info

Tags:

Mysql

Php

Laravel