public function up()
{
$tableName = 'users';
Schema::create($tableName, function (Blueprint $table) {
$table->id();
// カラム定義
$table->timestamps();
});
// テーブル作成後にAUTO_INCREMENTの開始値を設定
// テスト用DB(SQLite)以外の場合のみ実行
if (DB::getDriverName() !== 'sqlite') {
DB::statement("ALTER TABLE {$tableName} AUTO_INCREMENT = 1001");
}
}