Set MO-122 and SONATE to upload to LoTW

This commit is contained in:
Peter Goodhall 2024-10-24 13:45:15 +01:00
parent 1feca1d29c
commit 7fdf83cc36
4 changed files with 36 additions and 1 deletions

View File

@ -22,7 +22,7 @@ $config['migration_enabled'] = TRUE;
|
*/
$config['migration_version'] = 188;
$config['migration_version'] = 190;
/*
|--------------------------------------------------------------------------

View File

@ -993,6 +993,7 @@ class Lotw extends CI_Controller {
"TEVEL7" => "TEVEL-7",
"TEVEL8" => "TEVEL-8",
"INSPR7" => "INSPIRE-SAT 7",
"SONATE" => "SONATE-2",
);
return array_search(strtoupper($satname),$arr,true);

View File

@ -0,0 +1,17 @@
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Migration_set_MO122_lotw_upload extends CI_Migration
{
public function up()
{
$this->db->set('COL_LOTW_QSL_SENT', 'N');
$this->db->where('COL_SAT_NAME', 'MO-122');
$this->db->update($this->config->item('table_name'));
}
public function down()
{
// Not Possible
}
}

View File

@ -0,0 +1,17 @@
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Migration_set_SONATE_lotw_upload extends CI_Migration
{
public function up()
{
$this->db->set('COL_LOTW_QSL_SENT', 'N');
$this->db->where('COL_SAT_NAME', 'SONATE-2');
$this->db->update($this->config->item('table_name'));
}
public function down()
{
// Not Possible
}
}