<p></p>
<p dir="auto">Thanks for the PR!</p>
<p dir="auto">But the index definition has to be done in the xml files that specify the schema <code class="notranslate">src/lib/srdb1/schema/pr_watchers.xml</code> -- repo link:</p>
<ul dir="auto">
<li><a href="https://github.com/kamailio/kamailio/blob/master/src/lib/srdb1/schema/pr_watchers.xml">https://github.com/kamailio/kamailio/blob/master/src/lib/srdb1/schema/pr_watchers.xml</a></li>
</ul>
<p dir="auto">The the sql/db creation scripts can be generated for all backends (mysql, postgres, ...) with:</p>
<pre class="notranslate"><code class="notranslate">make dbschema
</code></pre>
<p dir="auto">You would need xml tools installed, you can just change the xml file and I can then regenerated the sql/db scripts.</p>
<p dir="auto">You can force push to this PR or close and open another one.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/3182#issuecomment-1181691221">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZON7WUW7C6GDCHKI63VTVPGDANCNFSM53HSRMSQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZOGEKPPR4VL4NPBBXDVTVPGDA5CNFSM53HSRMS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIZXS2VI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><kamailio/kamailio/pull/3182/c1181691221</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/3182#issuecomment-1181691221",
"url": "https://github.com/kamailio/kamailio/pull/3182#issuecomment-1181691221",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>