Could not read a hi value - you need to populate the table: hibernate_sequence

Getting below error when I migrate a spring boot microservice to production:

hibernate.id.enhanced.TableStructure : could not read a hi value - you need to populate the table: hibernate_sequence

Please help to resolve this.

2 Likes

This error means hibernate_sequence table/sequence is present in database but no value present in it.

We need to provide the next_val or last_value.

2 Likes