diff --git a/application/config/migration.php b/application/config/migration.php index ccb0fc54..9750ad13 100644 --- a/application/config/migration.php +++ b/application/config/migration.php @@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE; | be upgraded / downgraded to. | */ -$config['migration_version'] = 93; +$config['migration_version'] = 94; /* |-------------------------------------------------------------------------- diff --git a/application/migrations/094_update_modes_adif313.php b/application/migrations/094_update_modes_adif313.php new file mode 100644 index 00000000..798f2d61 --- /dev/null +++ b/application/migrations/094_update_modes_adif313.php @@ -0,0 +1,72 @@ + Import only + $this->db->set('active', 0); + $this->db->where('mode', 'C4FM'); + $this->db->update('adif_modes'); + + // deactivate DSTAR => Import only + $this->db->set('active', 0); + $this->db->where('mode', 'DSTAR'); + $this->db->update('adif_modes'); + + // insert new C4FM + $data = array( + array('mode' => "DIGITALVOICE", 'submode' => "C4FM", 'qrgmode' => "DATA", 'active' => 1), + ); + $this->db->insert_batch('options', $data); + + // insert new DMR + $data = array( + array('mode' => "DIGITALVOICE", 'submode' => "DMR", 'qrgmode' => "DATA", 'active' => 1), + ); + $this->db->insert_batch('options', $data); + + // insert new DSTAR + $data = array( + array('mode' => "DIGITALVOICE", 'submode' => "DSTAR", 'qrgmode' => "DATA", 'active' => 1), + ); + + $this->db->insert_batch('options', $data); + + // insert new DYNAMIC + $data = array( + array('mode' => "DYNAMIC", 'qrgmode' => "DATA", 'active' => 1), + ); + $this->db->insert_batch('options', $data); + + // insert new VARA HF + $data = array( + array('mode' => "DYNAMIC", 'submode' => "VARA HF", 'qrgmode' => "DATA", 'active' => 1), + ); + $this->db->insert_batch('options', $data); + + // insert new VARA SATELLITE + $data = array( + array('mode' => "DYNAMIC", 'submode' => "VARA SATELLITE", 'qrgmode' => "DATA", 'active' => 1), + ); + $this->db->insert_batch('options', $data); + + // insert new VARA FM 1200 + $data = array( + array('mode' => "DYNAMIC", 'submode' => "VARA FM 1200", 'qrgmode' => "DATA", 'active' => 1), + ); + $this->db->insert_batch('options', $data); + + // insert new VARA FM 9600 + $data = array( + array('mode' => "DYNAMIC", 'submode' => "VARA FM 9600", 'qrgmode' => "DATA", 'active' => 1), + ); + $this->db->insert_batch('options', $data); + } + + public function down() + { + // Not Possible + } +} \ No newline at end of file