[Xerte-dev] Re: 1.9 thinking
David Goodwin
david at palepurple.co.uk
Wed Jul 4 22:57:44 BST 2012
On 4 Jul 2012, at 22:30, Pat Lockley wrote:
> How do i add something to it?
Just add a new function at the bottom of 'upgrade.php' - increment the number each time -
i.e. function upgrade_1(), function upgrade_2(), function upgrade_3() etc etc.
The script checks the 'config' table each time it runs to know which was the last update applied.
If there are any functions defined with a higher number (E.g. upgrade_4()) then it'll run them in order, and update the config table afterwards.
>
> Does site details need a "version" number?
>
It already exists - in the 'config' table, which upgrade.php will create if it doesn't already exist.
thanks
David.
Pale Purple Ltd. (Company No: 5580814)
'Business Web Application Development and Training in PHP'
http://www.palepurple.co.uk
Office: 0845 0046746 Mobile: 07792380669
Follow us on Twitter: @PalePurpleLtd
More information about the Xerte-dev
mailing list