1
dheltzel
Where is the code to update the database structure during a module update?
  • 2004/6/23 17:08

  • dheltzel

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/1/8 1


I'm trying to update the phpBB to newBB conversion script to work with newBB 2 (beta), I can see the old and new SQL creation code in the sql directory, but the SQL to update from ver 1 to ver 2 would be the easiest to use to make the changes. Unfortunately, I can't figure out where the update SQL is kept, or even which php program runs the update.

Can anyone enlighten me?

Dennis

2
Mithrandir
Re: Where is the code to update the database structure during a module update?

You'll need an onUpdate function similar to the module onInstall and onUninstall functions.

This will not be possible until the next XOOPS version, sorry.