Get the maximum possible ID value for a primary key?

2019-01-09 Thread Stodge
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)

Re: Get the maximum possible ID value for a primary key?

2019-01-09 Thread shiva kumar
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