lib/db/upgrade.php for >2.0 in cvs trunk

lib/db/upgrade.php for >2.0 in cvs trunk

by Luke Hudson -
Number of replies: 2
Hi there.

I'm trying to merge in a DB schema fix to cvs HEAD and I see the comment at the beginning of lib/db/upgrade.php

///upgrade supported only from 1.9.x ///

So, if I have a fix to 19_STABLE do I need to also put the schema change into HEAD's lib/db/upgrade.php?

I wasn't clear on what this comment meant.

Does it mean that one must only upgrade to 2.0, from the most recent version of 1.9? (meaning my fix would be in)

Cheers,
- Luke
Average of ratings: -
In reply to Luke Hudson

Re: lib/db/upgrade.php for >2.0 in cvs trunk

by Petr Skoda -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers
Hello,

there should not be any changes in 1.9.x db structure. (There were several exceptions already though.) Any db change must be approved by Martin or at least Eloy, even if it is an obvious bug.

The upgrades to 2.0 are supported from any 1.9.0, 1.9.1, ... Please note that upgrades from 1.9beta are not supported. The upgrade code will be usually executed twice - first in 1.9.x and then again in 2.0.

Petr
In reply to Petr Skoda

Re: lib/db/upgrade.php for >2.0 in cvs trunk

by Luke Hudson -
Ah, sorry about that. Cheers for clearing that up, I hadn't understood this, from the comment in lib/db/upgrade.php.
Thanks,
- Luke