I added another field to my Listing()
model called highest_bid
. However, when I try to look at the listing model in the /admin
page I get the OperationalError
:
no such column: auctions_listing.highest_bid
After adding this field I tried using makemigrations
, but it said that there were no changes and I also tried using migrate
but that also said that there was nothing to migrate.
I also tried removing null=True
on the field but that did not change anything.
How do I add this field without getting an error?
models.py:
class Listing(models.Model):
...
highest_bid = models.FloatField()
# highest_bid = models.FloatField(null=True)
# they both returned the same error