Closed GoogleCodeExporter closed 8 years ago
Just hit the same one.
The weird part of it is that in my case, the command line (manage.py) works
fine, upgrade, downgrade and test. The trouble only appear (but it always
appear) from my module. Leading me t maybe a possible fix in my module
What my module does:
try:
migrate_api.db_version(db_uri, repo_path)
except DatabaseNotControlledError:
migrate_api.version_control(db_uri, repo_path, 0)
migrate_api.upgrade(db_uri, repo_path)
I am doing something wrong over there ?
The trouble itself is that the table is ceated (table.create()) on another
connection than the rest than the operation (ALTER and INSERT), and by the time
the INSERT comes, the create() has not ben COMMITED (I guess.)
Original comment by al.yazdi
on 26 Oct 2011 at 6:15
Based on the patch from Jones, I built up the following one, which also works
fine, and closes no connection.
http://code.google.com/r/alyazdi-patches/source/detail?r=e5bd2821eea8aac5c5bb240
83c27d62f680714b9
Original comment by al.yazdi
on 26 Oct 2011 at 6:34
This issue was closed by revision a6edab8d553b.
Original comment by jan.ditt...@gmail.com
on 28 Oct 2011 at 10:27
Original issue reported on code.google.com by
tscho...@gmail.com
on 12 Jul 2011 at 8:33Attachments: