function updateVersion(current_version){
    case_data.storage_format_version = storage_format_version

    // 2 -> 3
    if(current_version<3) {

        case_data.direction = [{id: 1, text: "<-"}, {id: 2, text: "->"}]
        casedata.killchain = [
            {id: 1, text: 'Recon'},
            {id: 2, text: 'Weaponization'},
            {id: 3, text: 'Delivery'},
            {id: 4, text: 'Exploitation'},
            {id: 5, text: 'Installation'},
            {id: 6, text: 'C2'},
            {id: 7, text: 'Actions on Obj.'},
        ]
    }

    // 3 -> 4
    if(current_version<4) {
        case_data.evidence = []
    }

    // 4 -> 5
    if(current_version<5) {

        case_data.system_types =[
            {id:1,text:"Desktop"},
            {id:2,text:"Server"},
            {id:3,text:"Phone"},
            {id:4,text:"Tablet"},
            {id:5,text:"TV"},
            {id:6,text:"Networking device"},
            {id:7,text:"IoT device"},
            {id:8,text:"Other"},
            {id:8,text:"Attacker Infra"}
        ]

        case_data.event_types.push({id:11, text:"C2"})
        current_version=5
    }

    // 5->6
    if(current_version<6) {
        case_data.osint = []
        current_version=6
    }

    case_data.storage_format_version = 6

    // 6->7
    case_data.storage_format_version = 7
}
These are The updates that need to be made to an older sod file. This functionality was first introduced with
Storage file version 3. So 2->3 is the first fix here. Whenever we update the storage file format version we need
to supply patches here to lift the old file format to the new file format.