diff --git a/application/config/migration.php b/application/config/migration.php index 04d4b909..0491cbfd 100644 --- a/application/config/migration.php +++ b/application/config/migration.php @@ -22,7 +22,7 @@ $config['migration_enabled'] = TRUE; | */ -$config['migration_version'] = 193; +$config['migration_version'] = 194; /* |-------------------------------------------------------------------------- diff --git a/application/migrations/194_upload_so124_to_lotw.php b/application/migrations/194_upload_so124_to_lotw.php new file mode 100644 index 00000000..d8abb8a7 --- /dev/null +++ b/application/migrations/194_upload_so124_to_lotw.php @@ -0,0 +1,27 @@ +db->set('COL_SAT_NAME', 'SO-124'); + $this->db->where('COL_SAT_NAME', 'HADES-R'); + $this->db->update($this->config->item('table_name')); + log_message('info', 'Migration: Updated COL_SAT_NAME to SO-124 for HADES-R'); + + // update column COL_LOTW_QSL_SENT to N if its SO-124 + $this->db->set('COL_LOTW_QSL_SENT', 'N'); + $this->db->where('COL_SAT_NAME', 'SO-124'); + $this->db->update($this->config->item('table_name')); + log_message('info', 'Migration: Set COL_LOTW_QSL_SENT to N for SO-124'); + + } + + public function down() + { + // Not Possible + } +}