Reputation: 43401
I'm fairly new to Django
(1.6) and South
, when googling "django south migration", I came accross some diagram mentioning the schemamigrate
task.
I'm only familiar with the schemamigration
task.
So what's the difference between schemamigrate
and schemamigration
in Django?
Upvotes: 1
Views: 3618
Reputation: 473893
South
does not provide schemamigrate
command. They meant schemamigration
instead.
schemamigration
command analyzes the models you have defined in models.py
and the tables in the database, understands the difference and generates migration files.
migrate
applies these generated migrations to the database.
These command are usually used one by one:
schemamigration
migrate
FYI, South tutorial
has a relevant example.
Upvotes: 4