'I deleted my migration file in django and i migrated it but it does not migrate

After deleting my migration file, I coded the table messages, but no response

this is my table:

class Person(models.Model):
id = models.AutoField(primary_key=True)
first_name = models.CharField(max_length=30)
last_name = models.CharField(max_length=30)

class Message(models.Model):
user_code = models.ForeignKey(Person, on_delete=models.CASCADE)
messages = models.TextField(max_length=5000)

and it says:

./python manage.py migrate
Operations to perform: y migrate
Apply all migrations: admin, auth, contenttypes, sessions Running migrations: No migrations to apply.

And in error it displays:

OperationalError at /admin/Login/message/

I have also tried clearing the table...



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source