[wp-hackers] Handling upgrades to a plugin's database scheme

Christine Davis christine at neato.co.nz
Tue Oct 30 20:39:54 GMT 2007


http://codex.wordpress.org/Creating_Tables_with_Plugins has some waffle on
handling upgrades to database tables about halfway down the page.

On 10/31/07, James Davis <james at freecharity.org.uk> wrote:
>
> I've written a plugin which uses it's own database table to store data.
> I've since extended the plugin which now uses a slightly different
> schema for that table.
>
> What's the best way to handle the change in schema when users upgrade
> from the previous version of the plugin to the current one?
>
> Thanks,
>
> James
>
> --
> FreeCharity.org.uk - Free hosting for charities and non-profits
> WordPress and Blogging Consultancy       -      (01348) 800101
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list