title: How to fix 'Django: table doesn't exist' when migrating from someone else's project?
body: <p>I get the following error while trying to run the command <code>python manage.py makemigrations invigilators</code>:</p>
  <blockquote>
  <p>django.db.utils.ProgrammingError: (1146, &quot;Table 'mydatabase.invigilators_shift' doesn't exist&quot;)</p>
  </blockquote>
  <pre><code>class Shift(models.Model):
      shiftName = models.CharField(max_length=255,blank=False,unique=True)
      exam = models.ForeignKey(Exam,on_delete=models.CASCADE,related_name=&quot;shifts&quot;)
      startTime = models.TimeField()
      endTime = models.TimeField()
  
      def __str__(self):
          return self.shiftName
  </code></pre>
  <p>I have already cleared all previous migrations and an empty database is already created.</p>