I am using cockroachDB for my app.
One of schemas have incremental id (from 1). I made sequence for that table and use the sequence for primary key.
The problem is that this sequence does not reset unless I drop database and create it.
So my questions are Is it possible to do reset this sequence everytime I run test? or Is it only possible to do it if I drop and create database everytime I run test?
Thank you in advance.
Aucun commentaire:
Enregistrer un commentaire