Beispiel #1
0
function M_Upgrade($from = false)
{
    switch ($from) {
        case 1:
        case 2:
            M_Alterfor2();
        case 3:
            M_Alterfor3();
        case 4:
        case 5:
            M_Alterfor4();
        case 6:
            M_Alterfor5();
        case 7:
            M_Alterfor6();
        case 8:
        case 9:
            M_Alterfor10();
        case 10:
            M_Alterfor11();
        case 11:
            M_Alterfor12();
        case 12:
        case 13:
            M_Alterfor14();
            break;
        case false:
            M_Createtables();
            break;
        default:
            M_Createtables();
            break;
    }
}
Beispiel #2
0
function M_Upgrade($from = false)
{
    switch ($from) {
        default:
        case 0:
            M_Createtables();
        case 1:
        case 2:
            M_Alterfor2();
        case 3:
            M_Alterfor3();
        case 4:
        case 5:
            M_Alterfor4();
        case 6:
            M_Alterfor5();
        case 7:
            M_Alterfor6();
        case 8:
        case 9:
            M_Alterfor10();
        case 10:
            M_Alterfor11();
        case 11:
            M_Alterfor12();
        case 12:
        case 13:
            M_Alterfor14();
        case 14:
            M_Alterfor15();
        case 15:
        case 16:
        case 17:
            M_Alterfor16();
        case 18:
        case 19:
        case 20:
        case 21:
            M_Alterfor18();
        case 22:
            M_Alterfor22();
            M_repair_tables(false);
            break;
    }
}