<p>The fixes have to be done in the xml files from lib/srdb1/schema. The sql files are generated from there with:</p>

<p>make dbschema</p>

<p>run in the root folder of kamailio sources.</p>

<p>For default values for datetime fields, the best is to use a static value, like '2000-01-01 00:00:00', because I don't know if those directives are portable across other database types.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/pull/134#issuecomment-94808752">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZR5ZItOOaTPWiYu4j4kNP2JaNn52ks5oBlGZgaJpZM4EFMC4.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/kamailio/kamailio/pull/134#issuecomment-94808752"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>