Home | History | Annotate | Download | only in migrations
      1 UP_SQL = """
      2 CREATE EVENT afe_add_entry_to_hqe_start_times
      3 ON SCHEDULE EVERY 10 MINUTE DO
      4 INSERT INTO afe_host_queue_entry_start_times (insert_time, highest_hqe_id)
      5 SELECT NOW(), MAX(afe_host_queue_entries.id)
      6 FROM afe_host_queue_entries;
      7 """
      8 
      9 DOWN_SQL = """
     10 DROP EVENT afe_add_entry_to_hqe_start_times;
     11 """
     12