title: Liquibase - TagDatabase changeset updates the previous changeset with the tag as well
body: <p>I wanted to tag the database using the following changeset in the changelog file for future rollback purposes. When I apply this changeset I have noticed in the databasechangelog the previous changeset is also updated with the tag.</p>
  
  <p>The changeset in the changelog file </p>
  
  <pre><code>`&lt;changeSet author="Major Version" id="2.0"&gt; 
   &lt;tagDatabase tag="version_2.0"/&gt;
   &lt;/changeSet&gt; `
  </code></pre>
  
  <p>Below is the extract from the databasechangelog table  , function51 is a changeset from a previous run </p>
  
  <p><code>===&gt;function51|| sr ||    ./db-changelog.xml ||    05-APR-14 12.34.46.975900000 ||    15 ||    EXECUTED  ||   7:5616f4adba7690fafd882b3a607c3eca  ||   sqlFile   ||   **version_2.0**  ||   3.1.1</code></p>
  
  <pre><code>`===&gt;2.0 ||    Major Version  ||   ./db-ApplyTag.xml ||    05-APR-14 12.37.24.140637000    || 16 ||    EXECUTED  ||   7:97fe9eb435a72fdfbe27647efa5be97d  ||   tagDatabase       ||  **version_2.0** ||    3.1.1`
  </code></pre>
  
  <p>Has anybody encountered this ? I am using Liquibase 3.1.1</p>
  
  <p>Thanks.</p>