Alter sequence in H2
问题 I'm using Postgres database in production and H2 for tests. I want to create a new sequence for an existing table - so in Liquibase I wrote this: <changeSet id="Add sequence for BOOKS" author="library"> <createSequence sequenceName="BOOKS_SEQ" incrementBy="500" startValue="1"/> </changeSet> My Entity looks like this: @Entity @Table(name = "BOOKS") @SequenceGenerator(name = "BOOKS_SEQ", allocationSize = 500) public class Book { @Id @GeneratedValue(generator = "BOOKS_SEQ", strategy =