Is there a way to get the maximum value that an ID can be for a model that
uses AutoField for its primary key? For example, in PostgreSQL I could do:
SELECT maximum_value FROM information_schema.sequences WHERE sequence_name =
'my_sequence_id_seq';
maximum_value
---
9
(1 row)
can you explain it indetail
On Wed, Jan 9, 2019 at 7:18 PM Stodge wrote:
> Is there a way to get the maximum value that an ID can be for a model that
> uses AutoField for its primary key? For example, in PostgreSQL I could do:
>
> SELECT maximum_value FROM information_schema.sequences WHERE
> s
2 matches
Mail list logo