Specifications:
You can skip migrate the table if table exist in database by add this code:
public function up()
{
if(Schema::hasTable('users')) return; //add this line to your database file
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->timestamps();
});
}
Change your Mysql Engine Setting
In config/database.php
, change your mysql engine setting to:
'engine' => 'innodb row_format=dynamic'
.
Note: This is applicable to Laravel 5.2.14+
There are two possible solutions for this as mentioned on this link:
https://www.codespeaker.com/laravel-framework/solutions-for-common-errors-on-artisan-commands/
First is rollback
php artisan migrate:rollback
Second is dropping of tables.