Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lifesound's avatar

Weired bug on heroku ( auto_increment by 10 )

I have an app that its ids incrementing ids by 1 normally LOCALLY But in Heroku clear~DB Mysql it is incrementing by 10 ? $table->id()->startingValue(1000);

0 likes
7 replies
jlrdw's avatar

@sr57 you beat me to it. @lifesound you really could have solved this on your own by just consulting the Mysql manual.

2 likes
jlrdw's avatar

@lifesound it has nothing to do with laravel, run in mysql. Don't you use something like sqlyog to manage mysql, you can do it there. Or dbeaver, etc.

1 like
jlrdw's avatar

Set it to 1

SET @@auto_increment_increment=1;
1 like

Please or to participate in this conversation.