<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
Sympa is distributed with queries that recreate the database from
scratch. For Postgres, you can find it here, for example:
<a class="moz-txt-link-freetext" href="https://www.sympa.org/distribution/current/src/etc/script/create_db.Pg">https://www.sympa.org/distribution/current/src/etc/script/create_db.Pg</a><br>
Please, pretty please : DON'T USE IT DIRECTLY ON YOUR PRODUCTION
DATABASE. It is full of "drop" queries that would erase your
preexisting data.<br>
However, you can copy the part related to the conf table and apply
it directly. It will create the table with all the fields and the
right structure.<br>
<br>
I know, this upgrade method sucks. But - and this is a message of
hope to all the Pg, Oracle and Sybase users around the world - your
torments will end soon. In the 6.2, we completely revamped the
database upgrade / usage code and any part related to a given
database is now enclosed in a dedicated module. That means that we
will be able to ask specialists of these RDBMS to work on these
modules which contain roughly only queries (query to create a table,
to set a key, to define an index, etc.) and Sympa will automagically
use them. That means automatic database upgrade for any supported
RDBMS.<br>
<br>
Actually, the work is done for Postgres and I'm going to tackle the
Oracle part - with all the help I'll be able to find. Any Sybase
specialist is welcome to contribute.<br>
<br>
Cheers,<br>
<br>
David<br>
<br>
Le 05/01/12 20:00, Giorgio Volpe a écrit :
<blockquote cite="mid:4F05F36A.90600@movi.fvg.it" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Il 05/01/2012 17:41, David Verdin ha scritto:
<blockquote cite="mid:4F05D2B8.1040707@renater.fr" type="cite">Dear
all,
<br>
<br>
The conf table will be automatically added if you are using
mysql or
SQLite. Other RDBMS-driven databases are not automatically
upgraded. <br>
What RDBMS are you using? <br>
<br>
</blockquote>
<br>
OK! Is this the problem?. I use postgres!<br>
<br>
Is there a way to upgrade with postgres?<br>
<br>
Giorgio<br>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<title></title>
<font color="#999999"><small><font face="Helvetica, Arial,
sans-serif">
<b>MoVI Regionale FVG<br>
</b>Via Garibaldi 23, 33038-San Daniele del Friuli.<br>
<b>Tel</b>. 0432 943002 - <b>Cell</b>. 346 8216304<br>
<b>Email</b> <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:giorgio.volpe@movi.fvg.it">giorgio.volpe@movi.fvg.it</a></font></small></font>
</div>
</blockquote>
</body>
</html>