0

I have a project that was using the following internal db commands from South and was wondering if anyone knows how to do the same in django 1.7's new migrations.

from south import db
...
db.delete_column(table,name)
...
db.add_column(table, name, field, keep_default=False)
....

Thanks

tr33hous
  • 1,622
  • 1
  • 15
  • 26

1 Answers1

1

The new functionality is fully documented. In your case you want AddField and RemoveField.

There is also a lower-level interface available via the SchemaEditor class.

Alasdair
  • 298,606
  • 55
  • 578
  • 516
Daniel Roseman
  • 588,541
  • 66
  • 880
  • 895