B
B
Bojczuk2015-11-10 09:30:41
Django
Bojczuk, 2015-11-10 09:30:41

Do I need to do migrations for an existing database table?

The new model completely copies the previous one and uses the same table. Used by South, a legacy application.
What should be done in this case? Fake migrations?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Elchev, 2015-11-10
@Bojczuk

See, migrations are a tool for changing the structure of a database. In this case, you do not need to change the structure, as I understand it already exists and suits you. So you can not write migration for this table or write only what it would be, for example, if you later deploy the application somewhere from scratch and you have to create this table.

S
sim3x, 2015-11-10
@sim3x

In this case, you need to migrate from South to the built-in migration mechanism

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question