python - Stucked in a django south migration - TransactionManagement error -
i having trouble when applying django south migration:
as always, executed migrate command after successful schemamigration
python manage.py migrate webapp
the log console:
running migrations webapp: - migrating forwards 0020_auto__add_example. > webapp:0020_auto__add_example transactionmanagementerror: transaction managed block ended pending commit/rollback
the error not related specific migration if move backwards , try shows same message.
any ideas?
edit. log of query:
(0.005) select `south_migrationhistory`.`id`, `south_migrationhistory`.`app_name`, `south_migrationhistory`.`migration`, `south_migrationhistory`.`applied` `south_migrationhistory` `south_migrationhistory`.`applied` not null order `south_migrationhistory`.`applied` asc; args=() running migrations webapp: - migrating forwards 0020_auto__add_example. > webapp:0020_auto__add_example (0.002) create table rollback_test (x int); args=() transactionmanagementerror: transaction managed block ended pending commit/rollback
i ran similar issue.
- mysql 5.6.13 (on amazon rds)
- django==1.5.4
- mysql-python==1.2.4
- south==0.8.2
i went through every possible fix here , through countless google searches 0 luck.
i looked @ database schema , table had not created named 'rollback_test' part of schema.
once dropped mystery table migration ran flawlessly.
this table have originated via django, south or possibly internal process @ amazon nothing else has access.
Comments
Post a Comment