title: Refactoring database with JSON content on liquibase
body: <p>I am working with a Java Spring application + hibernate + relational database (Edit: we have to support Postgresql, MySql and Oracle).</p>
  
  <p>Some of our tables stores Objects serialized as JSON.</p>
  
  <p>We use liquibase to manage our changes but, when it comes to changes that affect those JSONs, we don't know what to do.</p>
  
  <p>How would you go about refactoring this type of datasets?</p>
  
  <p>Imagine I serialize this POJO:</p>
  
  <pre><code>class POJO {
      String name
      Date   someDate
      Double someDouble
  ...
  </code></pre>
  
  <p>Then we change it:</p>
  
  <pre><code>class POJO {
      String name
      Date   someDateButAnotherName
      String aNewField
      //Double someDouble  &lt;-- deleted
  ...
  </code></pre>
  
  <p>How could I migrate this scenario?</p>