1 year ago

Auto increment integer

Posted 1 year ago by copain

i'm trying to make integer as auto increment and want to start in 100, but error keep coming up..

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

My code:

   public function up()
        Schema::create('leads', function (Blueprint $table) {

     * Reverse the migrations.
     * @return void
    public function down()

Please sign in or create an account to participate in this conversation.