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.
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'));
});
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community