<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Thank you all.<br>I have almost finished testing the update with all the Database migrations.<br>As soon as it's done, I'll share the various migrations I've done here (if there's not a more suitable place in the wiki).<br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><span style="font-family:Arial,Helvetica,sans-serif">Cheers,</span><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><span style="font-family:Arial,Helvetica,sans-serif">Giovanni</span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno ven 1 ott 2021 alle ore 15:04 Ovidiu Sas <<a href="mailto:osas@voipembedded.com">osas@voipembedded.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Giovanni,<br>
<br>
You can check the postgres db scripts for each kamailio version under<br>
utils/kamctl/postgres.<br>
There you have the scripts for creating the postgress db tables.<br>
You can see the exact differences between versions by comparing the<br>
relevant files.<br>
This is how I double check the db changes between upgrades :)<br>
<br>
Hope this helps,<br>
Ovidiu<br>
<br>
On Thu, Sep 30, 2021 at 2:00 PM Henning Westerholt <<a href="mailto:hw@skalatan.de" target="_blank">hw@skalatan.de</a>> wrote:<br>
><br>
> Hello,<br>
><br>
><br>
><br>
> have a look to the docs e.g., here, and replace mysql with postgres:<br>
><br>
><br>
><br>
> <a href="https://kamailio.org/docs/tutorials/5.4.x/kamailio-install-guide-git/#create-mysql-database" rel="noreferrer" target="_blank">https://kamailio.org/docs/tutorials/5.4.x/kamailio-install-guide-git/#create-mysql-database</a><br>
><br>
><br>
><br>
> There is a tool “kamdbctl” for it, you can also just use the plain scheme files in the kamailio source.<br>
><br>
><br>
><br>
> Cheers,<br>
><br>
><br>
><br>
> Henning<br>
><br>
><br>
><br>
> --<br>
><br>
> Henning Westerholt – <a href="https://skalatan.de/blog/" rel="noreferrer" target="_blank">https://skalatan.de/blog/</a><br>
><br>
> Kamailio services – <a href="https://gilawa.com" rel="noreferrer" target="_blank">https://gilawa.com</a><br>
><br>
><br>
><br>
> From: Giovanni Tommasini - timenet srl <<a href="mailto:giovanni.tommasini@timenet.it" target="_blank">giovanni.tommasini@timenet.it</a>><br>
> Sent: Thursday, September 30, 2021 4:46 PM<br>
> To: Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>><br>
> Cc: Henning Westerholt <<a href="mailto:hw@skalatan.de" target="_blank">hw@skalatan.de</a>><br>
> Subject: Re: [SR-Users] upgrade kamailio 4.4.x-to-5.0.0 - PostgreSQL migrations<br>
><br>
><br>
><br>
> Hi Henning,<br>
><br>
><br>
><br>
> thank you for your reply.<br>
> Interesting approach.<br>
> Can you tell me where I can find information on how to "Install the new 5.4.x kamailio postgres DB"?<br>
><br>
><br>
><br>
> Cheers,<br>
><br>
> Giovanni<br>
><br>
><br>
><br>
> Il giorno gio 30 set 2021 alle ore 09:03 Henning Westerholt <<a href="mailto:hw@skalatan.de" target="_blank">hw@skalatan.de</a>> ha scritto:<br>
><br>
> Hello Giovanni,<br>
><br>
><br>
><br>
> You are doing a bigger step in one upgrade. I would suggest the following approach to get the DB differences:<br>
><br>
><br>
><br>
> · Do a pg_dump -s for the database schema on the existing 4.4.x DB<br>
><br>
> · Install the new 5.4.x kamailio postgres DB on a test server etc..<br>
><br>
> · Do a pg_dump -s for the new database schema on the test server<br>
><br>
> · Compare the two schemas e.g. with diff or similar tool<br>
><br>
> · Use this to create an ALTER TABLE to (a copy) of the old database on a test server and test<br>
><br>
> · Alternatively you can of course also use other SQL techniques to insert the old data into the new one<br>
><br>
><br>
><br>
> Cheers,<br>
><br>
><br>
><br>
> Henning<br>
><br>
><br>
><br>
> From: sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org" target="_blank">sr-users-bounces@lists.kamailio.org</a>> On Behalf Of Giovanni Tommasini - timenet srl<br>
> Sent: Wednesday, September 29, 2021 10:06 AM<br>
> To: <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
> Subject: [SR-Users] upgrade kamailio 4.4.x-to-5.0.0 - PostgreSQL migrations<br>
><br>
><br>
><br>
> Hi Dears,<br>
><br>
><br>
><br>
> I'm working on upgrading Kamailio from 4.4.6 to 5.4.0 in an installation where I use PostgreSQL<br>
><br>
><br>
><br>
> I understand that I have to upgrade in steps by following these links:<br>
> - <a href="http://www.kamailio.org/wiki/install/upgrade/4.4.x-to-5.0.0" rel="noreferrer" target="_blank">http://www.kamailio.org/wiki/install/upgrade/4.4.x-to-5.0.0</a><br>
><br>
> - <a href="http://www.kamailio.org/wiki/install/upgrade/5.0.x-to-5.1.0" rel="noreferrer" target="_blank">http://www.kamailio.org/wiki/install/upgrade/5.0.x-to-5.1.0</a><br>
><br>
> - <a href="https://www.kamailio.org/wiki/install/upgrade/5.1.x-to-5.2.0" rel="noreferrer" target="_blank">https://www.kamailio.org/wiki/install/upgrade/5.1.x-to-5.2.0</a><br>
><br>
> - <a href="https://www.kamailio.org/wiki/install/upgrade/5.2.x-to-5.3.0" rel="noreferrer" target="_blank">https://www.kamailio.org/wiki/install/upgrade/5.2.x-to-5.3.0</a><br>
><br>
> - <a href="https://www.kamailio.org/wiki/install/upgrade/5.3.x-to-5.4.0" rel="noreferrer" target="_blank">https://www.kamailio.org/wiki/install/upgrade/5.3.x-to-5.4.0</a><br>
><br>
><br>
><br>
> in most of these links, in the section "Database", I find only the subsection "MySQL Database Structure", but I don't find the indications for DB migrations for PostgreSQL Database.<br>
><br>
> Only here <a href="https://www.kamailio.org/wiki/install/upgrade/5.2.x-to-5.3.0" rel="noreferrer" target="_blank">https://www.kamailio.org/wiki/install/upgrade/5.2.x-to-5.3.0</a> I found both the subsection "MySQL Database Structure" and "PostgreSQL Database Structure".<br>
><br>
><br>
><br>
> What does this mean?<br>
><br>
> - that I'm getting lost in a glass of water?<br>
> - or that I don't have to make any changes to PostgreSQL?<br>
> - or that the queries to be launched on PostgreSQL are the same as those for MySQL? I would discard this hypothesis<br>
> - or that the wiki sections for PostgreSQL are missing? If this were the case, I could proceed with the update and then share the queries I launched to update the wiki.<br>
><br>
><br>
><br>
> thanks a lot<br>
><br>
> Giovanni Tommasini<br>
><br>
> __________________________________________________________<br>
> Kamailio - Users Mailing List - Non Commercial Discussions<br>
>   * <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
> Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
> Edit mailing list options or unsubscribe:<br>
>   * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
<br>
<br>
-- <br>
VoIP Embedded, Inc.<br>
<a href="http://www.voipembedded.com" rel="noreferrer" target="_blank">http://www.voipembedded.com</a><br>
</blockquote></div></div>