I have this migration:
public function up()
{
Schema::create('players', function (Blueprint $table) {
$table->increments('id');
$table->char('country_code',2);
$table->integer('unoi_id');
$table->string('first_name');
$table->string('last_name');
$table->char('gender', 1);
$table->timestamp('birthdate');
$table->integer('school_id');
$table->string('school_period');
$table->string('school_level');
$table->integer('points');
$table->timestamps();
});
Schema::table('players', function(Blueprint $table){
$table->foreign('country_code')->references('country_code')->on('countries');
});
}
When I am creating a new record the value in the id's column doesn't start on 1. It starts in something like 321654 and then increments by one each time.
My question is: What can I do to set the default value to 1?