sql - Alter auto-generated sequence -
i use create auto-incremented id columns:
id bigserial -- psql id bigint generated default identity -- hsql
now in unit tests i'd reset sequences between tests.
is possible? target postgresql , hsqldb
truncate table restart identity;
http://www.postgresql.org/docs/9.2/static/sql-truncate.html
http://hsqldb.org/doc/guide/dataaccess-chapt.html#dac_truncate_statement
Comments
Post a Comment