First time here? Check out the FAQ!
0

Migrate askbot failed
 

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


To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
anonymous user
asked 13 years ago

Comments

1

I'm the Anonymous

northlander's avatar northlander (13 years ago)

@northlander: the FBI will be happy to hear!

piskvorky's avatar piskvorky (13 years ago)
see more comments

2 Answers

0

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?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 13 years ago
link

Comments

It is mysql 5.5.20.

northlander's avatar northlander (13 years ago)

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

Evgeny's avatar Evgeny (13 years ago)

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

northlander's avatar northlander (13 years ago)
see more comments
0

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?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
northlander's avatar
1
northlander
answered 13 years ago
link

Comments

see more comments