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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...