DO $$
BEGIN
  IF NOT EXISTS (SELECT 1 FROM permissions WHERE code = 'cms:article:create') THEN
    RAISE EXCEPTION 'missing cms permissions seed';
  END IF;
END $$;

