2012-04-29 6 views
1

私はMySQLでDjangoを使用しています。私はSouthをインストールし、アプリケーションをあるスキーマから別のスキーマに移行しようとしています。私は$ python manage.py migrate catalogを実行したときしかし、私は次のエラーを取得する:Django Southでのスキーマ移行に失敗しました:どうすればよいですか?

- Migrating forwards to 0003_initial. 
> catalog:0003_initial 
! 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: = DROP TABLE `categories` CASCADE; [] 
    = DROP TABLE `product_shapes` CASCADE; [] 
    = DROP TABLE `materials` CASCADE; [] 
    = DROP TABLE `style` CASCADE; [] 
    = DROP TABLE `products` CASCADE; [] 
    = DROP TABLE `products_shape` CASCADE; [] 
    = DROP TABLE `products_materials` CASCADE; [] 
    = DROP TABLE `products_style` CASCADE; [] 
    = DROP TABLE `products_categories` CASCADE; [] 

! The South developers regret this has happened, and would 
! like to gently persuade you to consider a slightly 
! easier-to-deal-with DBMS. 

は、私はこれらのテーブルをドロップすることなく移行することができますどのような方法があります。私がテーブルを落とすと、私が保存しようとしているデータが失われてしまいます。

EDIT:

私はこれが主なエラーであると考えている:彼らはそれらのデータを持っている場合

_mysql_exceptions.OperationalError: (1050, "Table 'categories' already exists") 

答えて

0

を保存したいのは、これらの表を削除しないでください。

あなたが引用したメッセージの後に続く実際のエラーを見ることなく、それ以上の具体的なヘルプを提供するのは難しいです。

関連する問題