Skip to content

Commit

Permalink
[Satellites] Change MESAT-1 to OSCAR MO-122
Browse files Browse the repository at this point in the history
  • Loading branch information
magicbug committed Oct 3, 2024
1 parent a8e800a commit 91d3c41
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 11 deletions.
2 changes: 1 addition & 1 deletion application/config/migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
|
*/

$config['migration_version'] = 186;
$config['migration_version'] = 187;

/*
|--------------------------------------------------------------------------
Expand Down
28 changes: 28 additions & 0 deletions application/migrations/187_MESAT1_to_MO122.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

defined('BASEPATH') OR exit('No direct script access allowed');

/*
* Change sat name from MESAT1 or MESAT-1 to MO-122
*/

class Migration_MESAT1_to_MO122 extends CI_Migration {

public function up()
{

$this->db->set('COL_SAT_NAME', 'MESAT1');
$this->db->where('COL_SAT_NAME', 'MO-122');
$this->db->update($this->config->item('table_name'));

$this->db->set('COL_SAT_NAME', 'MESAT-1');
$this->db->where('COL_SAT_NAME', 'MO-122');
$this->db->update($this->config->item('table_name'));
}

public function down()
{
// Not Possible
}

}
20 changes: 10 additions & 10 deletions assets/json/satellite_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -327,26 +327,26 @@
]
}
},
"MESAT-1":{
"MO-112":{
"Modes":{
"V/U":[
{
"Uplink_Mode":"LSB",
"Uplink_Freq":"145925000",
"Downlink_Mode":"USB",
"Downlink_Freq":"435825000"
"Uplink_Mode":"PKT",
"Uplink_Freq":"145987500",
"Downlink_Mode":"PKT",
"Downlink_Freq":"436925000"
}
]
}
},
"MO-112":{
"MO-122":{
"Modes":{
"V/U":[
{
"Uplink_Mode":"PKT",
"Uplink_Freq":"145987500",
"Downlink_Mode":"PKT",
"Downlink_Freq":"436925000"
"Uplink_Mode":"LSB",
"Uplink_Freq":"145925000",
"Downlink_Mode":"USB",
"Downlink_Freq":"435825000"
}
]
}
Expand Down

0 comments on commit 91d3c41

Please sign in to comment.