Jump to content
Mike Rockett

Module Upgrades and DB Schematics

Recommended Posts

So I've been wondering... What happens if a module gets an upgrade and it's DB table(s) need a schema update? Any decent way of handling this?

Share this post


Link to post
Share on other sites

@Mike

I don't think there is a "standard" way but the best I've seen so far is this, from one of Teppo's modules. You should be able to get the idea from the code.

  • Like 2

Share this post


Link to post
Share on other sites

@Mike,

Another example here from FieldtypeComments.

PS:

Please post all module related development stuff to the Module/Plugins sub-forum/board: Module/Plugin Development

https://processwire.com/talk/forum/19-moduleplugin-development/

This board is for 'Questions, answers and support for ProcessWire modules.' :-). Moving this thread there...

  • Like 1

Share this post


Link to post
Share on other sites

thank you for this question mike, i was also wondering about this.

i did some research and found some links:

http://stackoverflow.com/questions/1607/mechanisms-for-tracking-db-schema-changes

http://dbv.vizuina.com/ especially http://dbv.vizuina.com/documentation/#usage-revisions-create

http://davedevelopment.co.uk/2008/04/14/how-to-simple-database-migrations-with-phing-and-dbdeploy.html

do you guys use any tools for tracking DB changes or do you create your change-scripts/dumps manually like in the example of dbv?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...