ElkArte Community

Project Support => Support => Topic started by: nwsw on June 19, 2015, 08:00:01 am

Title: Database Changes in 1.0.4 Update
Post by: nwsw on June 19, 2015, 08:00:01 am
I update our forum using git merge, but this same question seems to apply to the update package.

How do the database changes get implemented via the update? Specifically, how does this change (https://github.com/elkarte/Elkarte/commit/e27942fb9029f5338a8966646451ddb7d36e36d5) finds its way into our database?

In 1.0.2, I had to manually run install/patch_1-0-2/update.php, but nothing like that seems to be available in 1.0.4.
Title: Re: Database Changes in 1.0.4 Update
Post by: Burke Knight on June 19, 2015, 10:08:25 am
The update package files have the code to do database updates in them, that is why it's best to use the update package when updating. As far as I know, if install via package manager, everything should get done, no need to manually run the file.
Title: Re: Database Changes in 1.0.4 Update
Post by: nwsw on June 19, 2015, 10:12:07 am
Quote from: Burke Knight – The update package files have the code to do database updates in them

I do not see any such code in https://github.com/elkarte/Elkarte/tree/master/install/patch_1-0-4
Title: Re: Database Changes in 1.0.4 Update
Post by: emanuele on June 19, 2015, 02:47:47 pm
I guess that's my fault...
Honestly I didn't see that change and as such I didn't create the upgrade file.

Anyway, this is something you can change from the admin panel as well: admin > main > package manager > download packages
1) delete the current server
2) in the "add server" section, use the same name as the current one "ElkArte Third-party Add-ons Site", and in the url field "http://addons.elkarte.net/package.json"
That's all.

Sorry for the inconvenience... :-[
Title: Re: Database Changes in 1.0.4 Update
Post by: Spuds on June 19, 2015, 05:41:04 pm
And I missed that it was not created as well  :-[

The silver lining in this instance it was just a "nice-ity"  to point to the proper addon site and you can, as already noted, fix it in the ACP.  It was not a schema change but a simple value change.
Title: Re: Database Changes in 1.0.4 Update
Post by: nwsw on June 19, 2015, 09:43:59 pm
Thanks for the replies. Obviously, this is an easy manual change, but I am always concerned about official forum support for my preferred update method of "git merge."  I manually review each update with this concern in mind.

I continue to be confused by updates to the upgrade.php (https://github.com/elkarte/Elkarte/blob/master/install/upgrade.php) system. This system seems like an artifact from SMF, so I do not understand the continued updates to it on github. I might be missing something, though....
Title: Re: Database Changes in 1.0.4 Update
Post by: emanuele on June 21, 2015, 05:15:13 pm
upgrade.php will be necessary when ElkArte will have to move from 1.0 to 1.1 and so on.
Yes, you could use it to update even between micro releases as well (you have to move all the upgrade*.* files to the root and run upgrade.php).