mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-27 01:24:16 +00:00
MIgrate Modes to ADIF V3.13
Inserting new modes, deactivating some modes and reordering them.
This commit is contained in:
@@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
|
||||
| be upgraded / downgraded to.
|
||||
|
|
||||
*/
|
||||
$config['migration_version'] = 93;
|
||||
$config['migration_version'] = 94;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
72
application/migrations/094_update_modes_adif313.php
Normal file
72
application/migrations/094_update_modes_adif313.php
Normal file
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
class Migration_update_modes_adif313 extends CI_Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
// deactivate C4FM => 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user