incubator-airflow/airflow/migrations
Xiaodong DENG 7156d6cdbc Rename last_scheduler_run into last_parsed_time, and ensure it's updated in DB (#14581)
- Fix functionality
  last_scheduler_run was missed in the process of
  migrating from sync_to_db/bulk_sync_to_db to bulk_write_to_db.

  This issue will fail DAG.deactivate_stale_dags() method,
  and blocks users from checking the last schedule time of each DAG in DB

- Change name last_scheduler_run to last_parsed_time,
  to better reflect what it does now.
  Migration script is added, and codebase is updated

- To ensure the migration scripts can work,
  we have to limit the columns needed in create_dag_specific_permissions(),
  so migration 2c6edca13270 can work with the renamed column.

Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
(cherry picked from commit c2a0cb9588)
2021-03-19 13:12:20 +00:00
..
versions Rename last_scheduler_run into last_parsed_time, and ensure it's updated in DB (#14581) 2021-03-19 13:12:20 +00:00
__init__.py
env.py
script.py.mako