Ask Your Question
0

Migrate askbot failed

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

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; []


delete close flag offensive retag edit

Comments

1

I'm the Anonymous

northlander ( 2012-02-14 20:48:31 -0500 )edit

@northlander: the FBI will be happy to hear!

piskvorky ( 2012-02-15 03:20:02 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

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

northlander gravatar image northlander
1 1 1 1

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?

link publish delete flag offensive edit
0

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

Evgeny gravatar image Evgeny flag of Chile
11074 50 84 182
http://askbot.org/

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?

link publish delete flag offensive edit

Comments

It is mysql 5.5.20.

northlander ( 2012-02-15 19:21:35 -0500 )edit

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

Evgeny ( 2012-02-15 19:22:56 -0500 )edit

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

northlander ( 2012-02-20 04:48:39 -0500 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

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

Seen: 168 times

Last updated: Feb 14 '12