Hello,
I want to add a new table to the [1].
I managed to create a new *kamailio-*.xml* in "lib/srdb1/schema/", run make and see the resulting **-dbschema.xml* in doc/databases/kamailio, along with the other .sql scripts. Here I got stuck; I can't find the scrip that generates the final .html.
I tried grepping the code for some keywords found in page source without success. Also, couldn't find the answer reading [2].
Any ideas how the final .html is generated?
Thanks, Stefan
[1] http://kamailio.org/docs/db-tables/kamailio-db-devel.html [2] http://www.kamailio.org/dokuwiki/doku.php/development:db-schema
Hello,
do you want to add the sql to create the new table or you just want to regenerate the html file with the description of db tables?
Cheers, Daniel
On 26/11/15 11:56, smititelu wrote:
Hello,
I want to add a new table to the [1].
I managed to create a new *kamailio-*.xml* in "lib/srdb1/schema/", run make and see the resulting **-dbschema.xml* in doc/databases/kamailio, along with the other .sql scripts. Here I got stuck; I can't find the scrip that generates the final .html.
I tried grepping the code for some keywords found in page source without success. Also, couldn't find the answer reading [2].
Any ideas how the final .html is generated?
Thanks, Stefan
[1] http://kamailio.org/docs/db-tables/kamailio-db-devel.html [2] http://www.kamailio.org/dokuwiki/doku.php/development:db-schema
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi,
On 26.11.2015 13:48, Daniel-Constantin Mierla wrote:
do you want to add the sql to create the new table or you just want to regenerate the html file with the description of db tables?
I think of both.
I can easily add the generated database script files(e.g. utils/kamctl/ dbtext, mysql, etc..). But I don't know how to regenerate the .html file with the description of db tables.
Thanks, Stefan
Hello,
for generating the sql script, run in root folder of kamailio sources:
make dbschema
The sql scripts will be placed in subfolders of utils/kamctl/.
For generating the html docs, iirc, the commands are:
- in lib/srdb1/schema:
make docbook-xml
- then in doc/databases/kamailio:
make html
Then a htables.html should be generated.
I didn't have the time to check everything, as I saw the commands issue error messages regarding the ID 'id', when doing validations.
Cheers, Daniel
On 26/11/15 14:29, smititelu wrote:
Hi,
On 26.11.2015 13:48, Daniel-Constantin Mierla wrote:
do you want to add the sql to create the new table or you just want to regenerate the html file with the description of db tables?
I think of both.
I can easily add the generated database script files(e.g. utils/kamctl/ dbtext, mysql, etc..). But I don't know how to regenerate the .html file with the description of db tables.
Thanks, Stefan
On 30.11.2015 10:23, Daniel-Constantin Mierla wrote:
for generating the sql script, run in root folder of kamailio sources:
make dbschema
The sql scripts will be placed in subfolders of utils/kamctl/.
For generating the html docs, iirc, the commands are:
- in lib/srdb1/schema:
make docbook-xml
- then in doc/databases/kamailio:
make html
Then a htables.html should be generated.
I didn't have the time to check everything, as I saw the commands issue error messages regarding the ID 'id', when doing validations.
Thank you.
Updated also http://www.kamailio.org/dokuwiki/doku.php/development:db-schema?&#databa...
Stefan
On 03/12/15 12:38, smititelu wrote:
On 30.11.2015 10:23, Daniel-Constantin Mierla wrote:
for generating the sql script, run in root folder of kamailio sources:
make dbschema
The sql scripts will be placed in subfolders of utils/kamctl/.
For generating the html docs, iirc, the commands are:
- in lib/srdb1/schema:
make docbook-xml
- then in doc/databases/kamailio:
make html
Then a htables.html should be generated.
I didn't have the time to check everything, as I saw the commands issue error messages regarding the ID 'id', when doing validations.
Thank you.
Updated also http://www.kamailio.org/dokuwiki/doku.php/development:db-schema?&#databa...
Thanks for contributing to documentation!
However, the portal www.kamailio.org/dokuwiki/ is for old versions, with a lot of outdated details for current version. Anything relevant for current stable or development, has to be added to www.kamailio.org/wiki/ .
Looking quickly at, I noticed there is a page for this topic: http://www.kamailio.org/wiki/devel/update-database-schema
It is missing the part for html doc, if you have time, would be good if you add your notes there.
Cheers, Daniel
On 03.12.2015 13:43, Daniel-Constantin Mierla wrote:
Looking quickly at, I noticed there is a page for this topic: http://www.kamailio.org/wiki/devel/update-database-schema
It is missing the part for html doc, if you have time, would be good if you add your notes there.
Updated the current doku.
Thanks, Stefan