title: Liquibase create table schemas in one-to-one relationship
body: <p>I am trying to write a Liquibase script that would create 2 tables that have a one-to-one relationship. It is failing with the exception:</p>
  
  <pre><code>ERROR: relation "owner" does not exist
  </code></pre>
  
  <p>I think this happens because at the time of creation of <code>CAR</code> table, <code>OWNER</code> table is still not existant. </p>
  
  <pre><code>    &lt;changeSet id="001" author="wesleyy"&gt;
  
          &lt;createTable tableName="CAR"&gt;
              &lt;column name="ID" type="bigint"&gt;
                  &lt;constraints primaryKey="true" nullable="false" /&gt;
              &lt;/column&gt;
  
              &lt;column name="OWNER_ID" type="bigint"&gt;
                  &lt;constraints 
                      foreignKeyName="OWNER_ID"
                      references="OWNER(ID)" /&gt;
              &lt;/column&gt;
          &lt;/createTable&gt;
  
  
          &lt;createTable tableName="OWNER"&gt;
              &lt;column name="ID" type="bigint"&gt;
                  &lt;constraints primaryKey="true" nullable="false" /&gt;
              &lt;/column&gt;
  
              &lt;column name="CAR_ID" type="bigint"&gt;
                  &lt;constraints 
                      foreignKeyName="CAR_ID"
                      references="CAR(ID)" /&gt;
              &lt;/column&gt;
          &lt;/createTable&gt;
      &lt;/changeSet&gt;
  &lt;/databaseChangeLog&gt;
  </code></pre>
  
  <p>The question is: am I using the foreign key reference correctly? How would I achieve this in Liquibase?</p>