title: error: ALTER TYPE ... ADD cannot run inside a transaction block
body: <p>I am trying to add new type value to my existing types in PostgreSQL. But I get the following error</p>
  
  <blockquote>
    <p>error: ALTER TYPE ... ADD cannot run inside a transaction block</p>
  </blockquote>
  
  <p>The query I used to add a new value to the type is </p>
  
  <pre><code>ALTER TYPE public.request_type ADD VALUE "Check";
  </code></pre>
  
  <p>I am actually running above query in migrations file which is created using node-pg-migrate</p>
  
  <p>Here <code>public</code> is my schema.</p>
  
  <p>Any idea why this is failing?</p>
  
  <p>Edit:</p>
  
  <p>The below query executes fine when execute it in pgadmin</p>
  
  <pre><code>ALTER TYPE public.request_type ADD VALUE "Check";
  </code></pre>
  
  <p>But when I run above command through node-pg-migrate migrations it fails and throws above error</p>