title: Django reached maximum value of sequence
body: <p>I am running a program that creates millions of records daily, after running this program for over a year it seems like I have reached the id limit on my postgres database.</p>
  
  <p>The error I am receiving is</p>
  
  <blockquote>
    <p>django.db.utils.DataError: nextval: reached maximum value of sequence "main_records_id_seq" (2147483647)</p>
  </blockquote>
  
  <p>Is there a way to extend the maximum id using SQL or the django ORM? Or is there a better solution?</p>