我需要在用户表中从1000开始设置我的id,我应该如何创建迁移。
我的当前迁移是:
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->increments('id'); // how can I start this from 1000
$table->integer('qualification_id')->nullable();
$table->integer('experience_id')->nullable();
});
}
$table->id()->from(1000);
。我了解这个问题是针对5.1
的。 - Salam