superset/caravel/migrations
Luca Albertalli fe6628b0a4 Fix #529 2 - "This Session's transaction has been rolled back" (#531)
* Created migration to fix the bug

* Working also on MySQL

* Added support for Vertica Grains (#515)

* Fix #529 1 "This Session's transaction has been rolled back" (#530)

* Fixing the specific issue

* Added an additional fix for a similar error in #529

Background:
- When an object is modified by SQLAlchemy, it is invalidated so need to be fetched again from the DB
- If there's an exception during a transaction, SQLAlchemy performs a rollback and mark the connection as dirty.

Bug:
- When handling exceptions, the exception handler tries to access the name of the cluster in the main object. Since the name has been invalidated due to a write, SQLAlchemy tries to fetch it on a 'dirty' connection and spits out an error. Solution:
- Fetch the information for handling the exception before starting the process.

* Modified the migration function to to automatically detect the the foreign keys based on the signature.
It supports also sqlite using batch migrations

* i18n: Fix typo in Druid cluster broker port label (#512)

* Update models.py (#541)

removing duplicated `user_id` def
2016-06-02 12:27:59 -07:00
..
versions Fix #529 2 - "This Session's transaction has been rolled back" (#531) 2016-06-02 12:27:59 -07:00
__init__.py Caravel - renaming files 2016-03-28 21:53:24 -07:00
alembic.ini Caravel - renaming files 2016-03-28 21:53:24 -07:00
env.py Optimizing import statements for better readability and to avoid unused, excessive and duplicating imports in the project. (#294) 2016-04-07 23:01:40 -07:00
README Caravel - renaming files 2016-03-28 21:53:24 -07:00
script.py.mako Caravel - renaming files 2016-03-28 21:53:24 -07:00

Generic single-database configuration.