Édouard Lopez
Édouard Lopez

Reputation: 43401

What's the difference between 'schemamigrate' and 'schemamigration' in Django?

I'm fairly new to Django (1.6) and South, when googling "django south migration", I came accross some diagram mentioning the schemamigrate task.

enter image description here

I'm only familiar with the schemamigration task.

So what's the difference between schemamigrate and schemamigration in Django?

Upvotes: 1

Views: 3618

Answers (1)

alecxe
alecxe

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:

  • make changes to the models
  • generate migrations with schemamigration
  • apply migrations via migrate

FYI, South tutorial has a relevant example.

Upvotes: 4

Related Questions