Esempio n. 1
0
function check_revision_minor0_major2($dbminor, $minor, $dbrevision, $revision)
{
    if ($dbrevision < 1) {
        echo "Upgrading database to version 2.0.1 <br />";
        upgrade_200_to_201();
    }
    if ($dbrevision < 2) {
        echo "Upgrading database to version 2.0.2 <br />";
        upgrade_201_to_202();
    }
    if ($dbrevision < 3) {
        echo "Upgrading database to version 2.0.3 <br />";
        upgrade_202_to_203();
    }
    if ($dbrevision < 4) {
        echo "Upgrading database to version 2.0.4 <br />";
        upgrade_203_to_204();
    }
    if ($dbrevision < 5) {
        echo "Upgrading database to version 2.0.5 <br />";
        upgrade_204_to_205();
    }
    if ($dbrevision < 6) {
        echo "Upgrading database to version 2.0.6 <br />";
        upgrade_205_to_206();
    }
    if ($dbrevision < 7) {
        echo "Upgrading database to version 2.0.7 <br />";
        upgrade_206_to_207();
    }
    if ($dbrevision < 8) {
        echo "Upgrading database to version 2.0.8 <br />";
        upgrade_207_to_208();
    }
    if ($dbrevision < 9) {
        echo "Upgrading database to version 2.0.9 <br />";
        upgrade_208_to_209();
    }
    if ($dbrevision < 10) {
        echo "Upgrading database to version 2.0.10 <br />";
        upgrade_209_to_210();
    }
    if ($dbrevision < 11) {
        echo "Upgrading database to version 2.0.11 <br />";
        upgrade_210_to_211();
    }
    if ($dbrevision < 12) {
        echo "Upgrading database to version 2.0.12 <br />";
        upgrade_211_to_212();
    }
    if ($dbrevision < 13) {
        echo "Upgrading database to version 2.0.13 <br />";
        upgrade_212_to_213();
    }
}
Esempio n. 2
0
function check_revision_minor0_major2($dbminor, $minor, $dbrevision, $revision)
{
    if ($dbrevision < 1) {
        echo "Upgrading database to version 2.0.1 <br />";
        upgrade_200_to_201();
    }
    if ($dbrevision < 2) {
        echo "Upgrading database to version 2.0.2 <br />";
        upgrade_201_to_202();
    }
    if ($dbrevision < 3) {
        echo "Upgrading database to version 2.0.3 <br />";
        upgrade_202_to_203();
    }
    if ($dbrevision < 4) {
        echo "Upgrading database to version 2.0.4 <br />";
        upgrade_203_to_204();
    }
    if ($dbrevision < 5) {
        echo "Upgrading database to version 2.0.5 <br />";
        upgrade_204_to_205();
    }
    if ($dbrevision < 6) {
        echo "Upgrading database to version 2.0.6 <br />";
        upgrade_205_to_206();
    }
}