Skip to content

Commit

Permalink
[AIRFLOW-3138] Use current data type for migrations (apache#3985)
Browse files Browse the repository at this point in the history
* Use timestamp instead of timestamp with timezone for migration.
  • Loading branch information
noronham authored and Fokko Driesprong committed Oct 13, 2018
1 parent 0c6de12 commit eacd28c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import sqlalchemy as sa
from airflow import settings
from airflow.models import DagBag
from airflow.utils.sqlalchemy import UtcDateTime

from sqlalchemy import (
Column, Integer, String)
Expand All @@ -52,7 +51,7 @@ class TaskInstance(Base):

task_id = Column(String(ID_LEN), primary_key=True)
dag_id = Column(String(ID_LEN), primary_key=True)
execution_date = Column(UtcDateTime, primary_key=True)
execution_date = Column(sa.DateTime, primary_key=True)
max_tries = Column(Integer)
try_number = Column(Integer, default=0)

Expand Down

0 comments on commit eacd28c

Please sign in to comment.