0
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)
)
]