createFunctionsQuery :: Query
createFunctionsQuery =
  "-- humming_schedule_notify function and trigger\n\
  \CREATE FUNCTIOn humming_schedule_notify()\n\
  \RETURNS TRIGGER AS $$\n\
  \BEGIN\n\
  \  PERFORM pg_notify('humming_schedule', '');\n\
  \  RETURN NULL;\n\
  \END;\n\
  \$$ LANGUAGE plpgsql;\n\
  \\n\
  \CREATE TRIGGER humming_schedule_notify\n\
  \AFTER UPDATE OR INSERT OR DELETE ON scheduled_jobs\n\
  \FOR EACH ROW\n\
  \EXECUTE PROCEDURE humming_schedule_notify();\n\
  \ "
createFunctionsQuery :: Query
createFunctionsQuery =
  "-- humming_schedule_notify function and trigger\n\
  \CREATE FUNCTIOn humming_schedule_notify()\n\
  \RETURNS TRIGGER AS $$\n\
  \BEGIN\n\
  \  PERFORM pg_notify('humming_schedule', '');\n\
  \  RETURN NULL;\n\
  \END;\n\
  \$$ LANGUAGE plpgsql;\n\
  \\n\
  \CREATE TRIGGER humming_schedule_notify\n\
  \AFTER UPDATE OR INSERT OR DELETE ON scheduled_jobs\n\
  \FOR EACH ROW\n\
  \EXECUTE PROCEDURE humming_schedule_notify();\n\
  \ "
createFunctionsQuery =
  "-- humming_schedule_notify function and trigger\n\
  \CREATE FUNCTIOn humming_schedule_notify()\n\
  \RETURNS TRIGGER AS $$\n\
  \BEGIN\n\
  \  PERFORM pg_notify('humming_schedule', '');\n\
  \  RETURN NULL;\n\
  \END;\n\
  \$$ LANGUAGE plpgsql;\n\
  \\n\
  \CREATE TRIGGER humming_schedule_notify\n\
  \AFTER UPDATE OR INSERT OR DELETE ON scheduled_jobs\n\
  \FOR EACH ROW\n\
  \EXECUTE PROCEDURE humming_schedule_notify();\n\
  \ "