-- Verify diary:articles_update_updated_at on pg

BEGIN;

DO $$
  BEGIN
    ASSERT (SELECT 1 from information_schema.triggers
             WHERE trigger_schema = 'diary'
               AND event_object_table = 'articles'
               AND trigger_name = 'update_updated_at');
  END
$$;

ROLLBACK;
