5
5

When installing my OSQA, I installed Django South for database migration. As described in this documentation, I used the following commands when I initially created my database:

python2.5 manage.py migrate forum --fake

Now, I have pulled a new version of the SVN code, and I see that there are new database migrations. What is the command to migrate my database to the latest South migration version?

asked 07 May '10, 19:31

Joseph's gravatar image

Joseph
1.6k377072
accept rate: 36%


Now just run migrate without the --fake switch:

python2.5 manage.py migrate forum

The first time you install it you need to use the --fake witch to "trick" south into think that it already migrated until your current version. Otherwise south would try to migrate from migration 1, failing...

link

answered 07 May '10, 19:33

Hernani%20Cerqueira's gravatar image

Hernani Cerq... ♦♦
16.8k65975
accept rate: 52%

edited 08 Nov '10, 20:18

rickross's gravatar image

rickross ♦♦
12.5k2814972

I think it's also important to point out that right after you hit enter, you should hold your breath. :)

(07 May '10, 19:37) Joseph

When migrating the database, should I take the site down?

(05 Jun '10, 14:08) Joseph
1

no, that's a very quick process. There's a maintainance mode switch on the admin area, but you shouldn't need that, a migration takes only a couple of seconds.

(05 Jun '10, 14:12) Hernani Cerq... ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×62
×37
×9
×4

Asked: 07 May '10, 19:31

Seen: 1,123 times

Last updated: 08 Nov '10, 20:18

powered by OSQA