airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bolke de Bruin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AIRFLOW-18) Alembic's constraints and indexes are unnamed thus hard to drop or change
Date Thu, 28 Apr 2016 18:39:12 GMT
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)

Mime
View raw message