/** * Perform any pre migrate actions for this module from 3.2.5 to 3.2.6. * This is for going from pre 3.2 versions where benefit data has * been saved to the database. * @return boolean */ protected function pre_migrate326() { $migrate_path = "/I2CE/formsData/migrate_data/3.2.3"; I2CE_FormStorage::storeMigrateData(array("salary_grade" => array("start", "midpoint", "end")), $migrate_path); $this->do_migrate326 = true; return true; }
/** * Perform any pre migrate actions for this module from 3.2.10 to 3.2.12 * This is for going from pre 3.2 versions where benefit data has * been saved to the database. * @return boolean */ protected function pre_migrate3212() { $migrate_path = "/I2CE/formsData/migrate_data/3.2.3"; I2CE_FormStorage::storeMigrateData(array("position" => array("proposed_salary")), $migrate_path); $this->do_migrate3212 = true; return true; }
/** * Run the pre migrate for this module. This can use the old config data before it * has been changed from the config. * @return boolean */ protected function pre_migrate() { $migrate_path = "/I2CE/formsData/migrate_data/3.2.3"; I2CE_FormStorage::storeMigrateData(array("education" => array("edu_type", "degree"), "degree" => array("edu_type")), $migrate_path); $this->do_migrate = true; return true; }
/** * Perform any pre migrate actions for this module to upgrade from 3.2.8 to 3.2.9. * This is for going from pre 3.2 versions where benefit data has * been saved to the database. * @return boolean */ protected function pre_migrate329() { $migrate_path = "/I2CE/formsData/migrate_data/3.2.3"; I2CE_FormStorage::storeMigrateData(array("benefit" => array("amount")), $migrate_path); $this->do_migrate329 = true; return true; }
/** * Perform any pre migrate actions for this module. * This is for going from pre 4.1.8 versions where classifications were saved to entry storage. * @return boolean */ protected function pre_migrate() { $migrate_path = "/I2CE/formsData/migrate_data/4.1.8"; I2CE_FormStorage::storeMigrateData(array("training" => array("training_classification")), $migrate_path); $this->do_migrate = true; return true; }
/** * Perform any pre migrate actions for this module from 3.2.4 to 3.2.6. * This is for going from pre 3.2 versions where benefit data has * been saved to the database. * @return boolean */ protected function pre_migrate326() { $migrate_path = "/I2CE/formsData/migrate_data/3.2.3"; I2CE_FormStorage::storeMigrateData(array("application" => array("desired_wage")), $migrate_path); $this->do_migrate326 = true; return true; }
/** * Run the pre migrate for this module. This can use the old config data before * it has been changed from the config. * @return boolean */ protected function pre_migrate() { $migrate_path = "/I2CE/formsData/migrate_data/3.2.3"; I2CE_FormStorage::storeMigrateData(array("person_id" => array("id_type")), $migrate_path); $this->do_migrate = true; return true; }
/** * Perform any pre migrate actions for this module. * This is for going from pre 3.2 versions where benefit data has * been saved to the database. * @return boolean */ protected function pre_migrate() { $migrate_path = "/I2CE/formsData/migrate_data/3.2.3"; I2CE_FormStorage::storeMigrateData(array("employment" => array("start_wage", "end_wage")), $migrate_path); $this->do_migrate = true; return true; }
/** * Perform any pre migrate actions for this module. * This is for going from pre 3.2 versions where benefit data has * been saved to the database. * @return boolean */ protected function pre_migrate() { $migrate_path = "/I2CE/formsData/migrate_data/3.2.3"; I2CE_FormStorage::storeMigrateData(array("person_competency" => array("competency_evaluation", "competency_type", "competency")), $migrate_path); $this->do_migrate = true; return true; }
/** * Perform any pre migrate actions for this module. * This is for going from pre 3.2 versions where benefit data has * been saved to the database. * @return boolean */ protected function pre_migrate() { $migrate_path = "/I2CE/formsData/migrate_data/3.2.3"; I2CE_FormStorage::storeMigrateData(array("person_language" => array("language", "speaking", "reading", "writing")), $migrate_path); $this->do_migrate = true; return true; }
/** * Run the pre migrate for this module. This can use the old config data before it * has been changed from the config. * @return boolean */ protected function pre_migrate() { $migrate_path = "/I2CE/formsData/migrate_data/3.2.3"; I2CE_FormStorage::storeMigrateData(array("demographic" => array("gender", "marital_status")), $migrate_path); $this->do_migrate = true; return true; }
/** * Run the pre upgrade for this module. This can use the old config data before it * has been changed from the config. * @param string $old_vers * @param string $new_vers * @param I2CE_MagicDataNode $new_storage * @return boolean */ public function pre_upgrade($old_vers, $new_vers, $new_storage) { if (I2CE_Validate::checkVersion($old_vers, '<', '3.2.3')) { /** * In 3.2.3 some lists were moved to magicdata storage so we need to save * any old record ids for the old lists for later reference before any field * types get changed in magic data. */ $migrate_path = "/I2CE/formsData/migrate_data/3.2.3"; I2CE_FormStorage::storeMigrateData(array("region" => array("country"), "district" => array("region"), "county" => array("district")), $migrate_path); } return parent::pre_upgrade($old_vers, $new_vers, $new_storage); }
protected function preUpgradeAccidentTypeFields() { $migrate_path = "/I2CE/formsData/migrate_data/4.0"; //first let us store the INT fields accident_type that we are updating in case there is an issue. I2CE_FormStorage::storeMigrateData(array("accident" => array("accident_type")), $migrate_path); //data is stored in $migrage_path/fields/accudent/$formid/accident_type = $int_value return true; }
/** * Do any pre upgrade actions if necessary. * @param string $old_vers * @param string $new_vers * @param I2CE_MagicDataNode $new_storage * @return boolean */ public function pre_upgrade($old_vers, $new_vers, $new_storage) { if (I2CE_Validate::checkVersion($old_vers, "<", "3.3.3")) { $migrate_path = "/I2CE/formsData/migrate_data/3.2.3"; I2CE_FormStorage::storeMigrateData(array("person" => array("home_country", "home_district", "home_county")), $migrate_path); } if (I2CE_Validate::checkVersion($old_vers, "<", "3.3.5")) { $migrate_path = "/I2CE/formsData/migrate_data/3.2.3"; I2CE_FormStorage::storeMigrateData(array("health_facility" => array("country", "district", "county", "facility_type", "facility_agent", "facility_status")), $migrate_path); } if (I2CE_Validate::checkVersion($old_vers, "<", "3.3.6")) { $migrate_path = "/I2CE/formsData/migrate_data/3.2.3"; I2CE_FormStorage::storeMigrateData(array("cadre" => array("qualification")), $migrate_path); I2CE_FormStorage::storeMigrateData(array("certificate" => array("academic_level")), $migrate_path); I2CE_FormStorage::storeMigrateData(array("deployment" => array("health_facility")), $migrate_path); I2CE_FormStorage::storeMigrateData(array("training_disruption_reason" => array("training_disruption_category")), $migrate_path); I2CE_FormStorage::storeMigrateData(array("training_disrupt" => array("disruption_reason")), $migrate_path); I2CE_FormStorage::storeMigrateData(array("disciplinary_action_reason" => array("disciplinary_action_category")), $migrate_path); I2CE_FormStorage::storeMigrateData(array("disciplinary_action" => array("disciplinary_action_category", "disciplinary_action_reason")), $migrate_path); I2CE_FormStorage::storeMigrateData(array("training_institution" => array("facility_agent", "facility_status", "country", "district", "county")), $migrate_path); I2CE_FormStorage::storeMigrateData(array("training_program" => array("cadre")), $migrate_path); I2CE_FormStorage::storeMigrateData(array("facility_institution" => array("health_facility", "training_institution")), $migrate_path); I2CE_FormStorage::storeMigrateData(array("demographic" => array("birth_country", "birth_district", "birth_county")), $migrate_path); I2CE_FormStorage::storeMigrateData(array("education" => array("academic_level", "certificate")), $migrate_path); I2CE_FormStorage::storeMigrateData(array("training" => array("training_institution", "cadre", "out_country")), $migrate_path); I2CE_FormStorage::storeMigrateData(array("exam" => array("try", "results")), $migrate_path); I2CE_FormStorage::storeMigrateData(array("registration" => array("practice_type")), $migrate_path); I2CE_FormStorage::storeMigrateData(array("out_migration" => array("country", "out_migration_reason")), $migrate_path); I2CE_FormStorage::storeMigrateData(array("private_practice" => array("health_facility")), $migrate_path); } return parent::pre_upgrade($old_vers, $new_vers, $new_storage); }
/** * Run the pre upgrade for this module. This can use the old config data before it * has been changed from the config. * @param string $old_vers * @param string $new_vers * @param I2CE_MagicDataNode $new_storage * @return boolean */ public function pre_upgrade($old_vers, $new_vers, $new_storage) { if (I2CE_Validate::checkVersion($old_vers, '<', '3.2.3')) { /** * In 3.2.3 some lists were moved to magicdata storage so we need to save * any old record ids for the old lists for later reference before any field * types get changed in magic data. */ $migrate_path = "/I2CE/formsData/migrate_data/3.2.3"; I2CE_FormStorage::storeMigrateData(array("training_course" => array("training_institution", "training_funder", "continuing_education_course", "training_course_status", "training_course_category"), "person_scheduled_training_course" => array("training_course_evaluation", "training_course_requestor", "training_course", "scheduled_training_course"), "scheduled_training_course" => array("country", "district", "county")), $migrate_path); } return parent::pre_upgrade($old_vers, $new_vers, $new_storage); }