How can I add a column to a table in the database using django? I tried the following migration and did not update my table:
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial')
]
operations = [
migrations.AddField(
model_name='item',
name='name',
field=models.CharField(max_length=45)
)
]