I've added a migration script in ODA to handle upgrade from previous oscar 
version smoothly.
pkgsrc/oda/trunk/etc/Migration_AddGpuSupport.sh

I've added it as a postinstall in the oda rpm package. Ideally, it should be a 
preinstall, but I'm not skilled enough t to tell rpm not to install the rpm if 
pre script fails. So I put it as post install. In install of files fails 
(conflicts or so,  the database is preserved). Chance that script fails are 
minimal so this is the less bad way to do. I'll look later about rpm pre and 
post behaviour to see how to handle that in pre cleanly.

Geoffroy, can you test this and add preinstall script in debian side?
the script shopuld be able to be run multiple times without being harmfull. the 
1st time it adds the missing column, then it does nothing if the column is here.

This script does not handle the fact that oscar database can have a password. 
Though, I'm not sure that all oscar pieces of can can handle that.


Best regards.


--
   Olivier LAHAYE
   CEA DRT/LIST/DCSI/DIR
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Oscar-devel mailing list
Oscar-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to