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).
_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel