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")