You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Bolke de Bruin (JIRA)" <ji...@apache.org> on 2016/04/28 20:39:12 UTC

[jira] [Created] (AIRFLOW-18) Alembic's constraints and indexes are unnamed thus hard to drop or change

Bolke de Bruin created AIRFLOW-18:
-------------------------------------

             Summary: Alembic's constraints and indexes are unnamed thus hard to drop or change
                 Key: AIRFLOW-18
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-18
             Project: Apache Airflow
          Issue Type: Bug
            Reporter: Bolke de Bruin


Eg. in XXX_add_dagrun.py the constraint is added without a name:

sa.UniqueConstraint('dag_id', 'execution_date'),

This makes constraint naming database specific, ie. postgres' name for the constraint be different than mysql's and sqllite's.

Best practice per http://alembic.readthedocs.io/en/latest/naming.html is to have naming conventions that are being applied. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)