title: Grails: How to recreate a table without restart application (re-deploy)?
body: <p>I've an application that should automatically drops a table if this table is old and recreate using new domain class.</p>
  
  <p>I know that <code>Datasource.groovy</code> with <code>dbCreate=update</code> will do this for me. But I don't want to restart application.</p>
  
  <p>I was expecting something like:</p>
  
  <pre><code>Customer.recreateDomainTable()
  </code></pre>
  
  <p>Note: to drop table I'm using:</p>
  
  <pre><code>Customer.withSession { session -&gt;
  session.createSQLQuery('drop table customer').executeUpdate() }
  </code></pre>