Ask Your Question
0

Migrate askbot failed

asked 2012-02-14 19:44:06 -0600

anonymous user

Anonymous

I got error message when run the following cmd:

python manage.py migrate askbot


(1146, "Table 'askbot.askbot_badgedata' doesn't exist") Running migrations for askbot: - Migrating forwards to 0051_proxify_qa_rev_models.

askbot:0020_auto__add_field_repute_comment__chg_field_repute_question ! Error found during real run of migration! Aborting.

! Since you have a database that does not support running ! schema-altering statements in transactions, we have had ! to leave it in an interim state between migrations.

! You might be able to recover with: = ALTER TABLE repute DROP COLUMN comment CASCADE; []


edit retag flag offensive close merge delete

Comments

1

I'm the Anonymous

northlander gravatar imagenorthlander ( 2012-02-14 20:48:31 -0600 )edit

@northlander: the FBI will be happy to hear!

piskvorky gravatar imagepiskvorky ( 2012-02-15 03:20:02 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2012-02-14 21:07:38 -0600

Evgeny gravatar image

You have to run all migrations, the syncdb --all will not work.

Which database are you using and what is the version of the database engine?

edit flag offensive delete link more

Comments

It is mysql 5.5.20.

northlander gravatar imagenorthlander ( 2012-02-15 19:21:35 -0600 )edit

Can you try with 5.1? there is an unsolved issue with MySQL 5.5. Tested with 5.1 recently.

Evgeny gravatar imageEvgeny ( 2012-02-15 19:22:56 -0600 )edit

I need to find a new server to do that test. let me try....

northlander gravatar imagenorthlander ( 2012-02-20 04:48:39 -0600 )edit
0

answered 2012-02-14 20:45:18 -0600

northlander gravatar image

I fixed this problem with an --all option added. That is:

python manage.py syncdb --all

But got new problem:

python manage.py migrate askbot
Running migrations for askbot:
- Migrating forwards to 0051_proxify_qa_rev_models.
> askbot:0020_auto__add_field_repute_comment__chg_field_repute_question
! Error found during real run of migration! Aborting.

How can i fix this?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-02-14 19:44:06 -0600

Seen: 357 times

Last updated: Feb 14 '12