Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 1 year ago.
0

Try with

bigIncrements
Last updated 1 year ago.
0

no, it also has modifier from laravel, laravel eloquent modifies all increments as primary key. it does not check is there any primary key is set by user. i think laravel needs this issue fixed.

Last updated 1 year ago.
0

Thank you for your reply Ruk33

Last updated 1 year ago.
0

Hi this might be late reply but try this :



Schema::create('person', function(Blueprint $table) {
        $table->string('id',255);
        $table->string('name',255);
        $table->bigInteger('test',true,true);
    $table->timestamps();
 $table->dropPrimary('person_test_primary');
        $table->primary(array('id'));

    });
Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.