0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Heroku ClearDB の AutoIncrementが4から始まり、10ずつ増える件

Posted at

起きたこと

別記事でもあったように、ClearDBはAutoIncrementが4から始まり、10ずつ増える仕様となっている。

自分のSpringboot アプリをデプロイする際も同様なことが起きた。

解決方法

DDLファイルに以下のコードを追加した。(今回はschema.sqlの最後に)

SET @@auto_increment_increment=1;

これで解決

qiita.png

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?