Answers for "1 unique uniueq ::("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""

PHP
19

SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table `users` add unique `users_email_unique`(`email`))

use Illuminate\Support\Facades\Schema;

public function boot()
{
    Schema::defaultStringLength(191);
}
Posted by: Guest on April-29-2020
0

Syntax error or access violation: 1075 Incorrect table def inition; there can be only one auto column and it must be defined as a key

$table->integer('thnajrn_id')->unsigned();
Posted by: Guest on July-21-2021

Code answers related to "1 unique uniueq ::("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""

Browse Popular Code Answers by Language