1# task_id can be NULL because tko_jobs.afe_job_id, which it replaces, can be 2# NULL. Same for parent_task_id. 3UP_SQL = """ 4CREATE INDEX reference_type_task_id ON tko_task_references (reference_type, task_id); 5CREATE INDEX reference_type_parent_task_id ON tko_task_references (reference_type, parent_task_id); 6""" 7 8DOWN_SQL = """ 9DROP INDEX reference_type_task_id ON tko_task_references; 10DROP INDEX reference_parent_type_task_id ON tko_task_references; 11""" 12