I made some changes to my model.py file... I added another field (fds_name):
from django.db import models
class funds(models.Model):
fds_symbol = models.CharField(max_length=5)
fds_name = models.CharField(max_length=128)
I ran the South schema migration command, and it detected the change and made a migration:
/var/www/finance/finance-env/bin/python3 manage.py schemamigration corefinance --auto
tail corefinance/migrations/0002_auto__add_funds.py
models = {
'corefinance.funds': {
'Meta': {'object_name': 'funds'},
'fds_name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
'fds_symbol': ('django.db.models.fields.CharField', [], {'max_length': '5'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
}
}
complete_apps = ['corefinance']
However, when I run the migration, it says there's nothing to migrate, and I can see that the database is still missing the new field.
/var/www/finance/finance-env/bin/python3 manage.py migrate corefinance
Running migrations for corefinance:
- Nothing to migrate.
- Loading initial data for corefinance.
Installed 0 object(s) from 0 fixture(s)