[wp-hackers] Handling upgrades to a plugin's database scheme
James Davis
james at freecharity.org.uk
Thu Nov 1 08:06:08 GMT 2007
Travis Snoozy wrote:
> I use a progressive upgrade scheme - there's a chunk of code that
> converts v1 data to v2 data, and another for v2 -> v3, and so on.
> Doing a (conditional) creation followed by insertion means that if I
> somehow get v2, v4, and v5 data in the same database, the conversion
> will still work:
Thanks. That's the way I've decided to go with this now. It appears to
work well.
James
--
http://www.freecharity.org.uk/ - Free IT services for charities
http://www.freecharity.org.uk/wiki/ - The VCSWiki
More information about the wp-hackers
mailing list