Skip to content

Commit

Permalink
Fix deprecation error message rather than silencing it (#18126)
Browse files Browse the repository at this point in the history
(cherry picked from commit c9d2946)
  • Loading branch information
ashb authored and kaxil committed Sep 10, 2021
1 parent 247382f commit f5f70e0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def upgrade():
batch_op.create_index(
'idx_dag_run_running_dags',
["state", "dag_id"],
postgres_where=text("state='running'"),
postgresql_where=text("state='running'"),
mssql_where=text("state='running'"),
sqlite_where=text("state='running'"),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def upgrade():
batch_op.create_index(
'idx_dag_run_queued_dags',
["state", "dag_id"],
postgres_where=text("state='queued'"),
postgresql_where=text("state='queued'"),
mssql_where=text("state='queued'"),
sqlite_where=text("state='queued'"),
)
Expand Down
4 changes: 2 additions & 2 deletions airflow/models/dagrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class DagRun(Base, LoggingMixin):
'idx_dag_run_running_dags',
'state',
'dag_id',
postgres_where=text("state='running'"),
postgresql_where=text("state='running'"),
mssql_where=text("state='running'"),
sqlite_where=text("state='running'"),
),
Expand All @@ -113,7 +113,7 @@ class DagRun(Base, LoggingMixin):
'idx_dag_run_queued_dags',
'state',
'dag_id',
postgres_where=text("state='queued'"),
postgresql_where=text("state='queued'"),
mssql_where=text("state='queued'"),
sqlite_where=text("state='queued'"),
),
Expand Down

0 comments on commit f5f70e0

Please sign in to comment.