title: liquibase auto generate UUID for multi database
body: <p>I am trying to use liquibase to auto generate the UUID as the primary key. This post has provided some ideas for postgresql, which I am trying to use. <a href="https://stackoverflow.com/questions/42361350/liquibase-insert-rows-with-uuid">Liquibase - insert rows with uuid</a></p>
  <pre><code>&lt;property name=&quot;uuid_type&quot; value=&quot;uuid&quot; dbms=&quot;postgresql&quot;/&gt;
  &lt;property name=&quot;uuid_function&quot; value=&quot;uid.uuid_generate_v4()&quot; dbms=&quot;postgresql&quot;/&gt;
  
  &lt;column name=&quot;id&quot; type=&quot;${uuid_type}&quot; defaultValueComputed=&quot;${uuid_function}&quot;&gt;
      &lt;constraints nullable=&quot;false&quot; unique=&quot;true&quot; /&gt;
  &lt;/column&gt;
  </code></pre>
  <p>However, I need a solution to get this work alone with H2. I have seen someone suggest using the following, when using h2 on its own, but it can't share defaultValueComputed in the column definition (I am not sure there is a supported function for h2 that can be assigned to defaultValueComputed)</p>
  <pre><code>&lt;property name=&quot;uuid_type&quot; value=&quot;varchar(36)&quot; dbms=&quot;h2&quot;/&gt;
  </code></pre>
  <p>Is there a way to support both Postgres and H2 in liquibase</p>