On Sat, Oct 30, 2010 at 12:00,  <[email protected]> wrote:
> Date: Fri, 29 Oct 2010 15:53:55 +0200
> From: Marco Trevisan (Trevi?o) <[email protected]>
> Subject: Re: [Shr-Devel] [PIM] Reasons why we should use New instead
>        of      MessageRead
> To: [email protected]
> Message-ID: <1288360435.22431.4.ca...@tricky>
> Content-Type: text/plain; charset="UTF-8"
>
> Il giorno ven, 29/10/2010 alle 08.46 +0200, Klaus 'mrmoku' Kurzmann ha
> scritto:
>> > Il giorno mar, 26/10/2010 alle 09.45 +0200, Daniele Ricci ha scritto:
>> > > Of course we'll change the code to do it automatically. It will use
>> > > this new naming for any future messages, but will also fix the old
>> > > database automatically.
>> >
>> > Am I wrong or the sql upgrade script is not included in the framework
>> > package and so no upgrade is performed actually?
>> Upgrade is _integrated_ in opimd and automatic. No need to run a script :-)
>
> Upgrade it's automatic, but it needs a sql script to run (from
> db_upgrade.py:
>
>
>    version_index = DB_VERSIONS.index(version) if version != None else 0
>    for i in range(version_index, len(DB_VERSIONS)):
>        try:
>            sql = open(os.path.join(base_path, 'db', 'upgrade-%s.sql' %
> (DB_VERSIONS[i])), 'r')
>        except:
>            continue
>
>        cur.executescript(sql.read())
>        sql.close()
>        con.commit()
>
> The upgrade script is available in
> framework/subsystems/opimd/db/upgrade-2.1.sql but is not installed by
> setup.py and then not performed by frameworkd (check opkg files
> frameworkd for reference, or try to use the frameworkd's setup.py to
> give a try).
>
>

>>> marco reply all please! <<

Indeed the script is missing from packaging, I talked about that with
JaMa, is fixing that and it should be on feed soon.

-- 
daniele_athome
_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel

Reply via email to