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 Alice Berard committed Jan 3, 2019
1 parent 5347289 commit d7b10eb
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,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
from sqlalchemy.engine.reflection import Inspector
Expand All @@ -51,7 +50,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 d7b10eb

Please sign in to comment.