Merge pull request #3260 from magicbug/dev

Time to move to version 2.6.17
master 2.6.17
Peter Goodhall 2025-03-05 21:56:13 +00:00 zatwierdzone przez GitHub
commit 7564575c74
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
8 zmienionych plików z 143 dodań i 9 usunięć

Wyświetl plik

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

Wyświetl plik

@ -11,11 +11,17 @@ class Migration_add_dxped_url_option extends CI_Migration {
public function up()
{
$data = array(
array('option_name' => "dxped_url", 'option_value' => "https://cdn.cloudlog.org/read_ng3k_dxped_list.php", 'autoload' => "yes"),
);
// Check if dxped_url is already in the options table
if ($this->db->where('option_name', 'dxped_url')->count_all_results('options') == 0) {
// Insert dxped_url option
$data = array(
'option_name' => "dxped_url",
'option_value' => "https://cdn.cloudlog.org/read_ng3k_dxped_list.php",
'autoload' => "yes"
);
$this->db->insert('options', $data);
}
$this->db->insert_batch('options', $data);
}
public function down()

Wyświetl plik

@ -0,0 +1,31 @@
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Migration_increase_lotwpass_field_val extends CI_Migration
{
public function up()
{
// In the user table increase the length of the user_lotw_password field to 255
$this->dbforge->modify_column('users', array(
'user_lotw_password' => array(
'name' => 'user_lotw_password',
'type' => 'VARCHAR',
'constraint' => '255',
'null' => TRUE
)
));
}
public function down()
{
// Reset it back to 64
$this->dbforge->modify_column('users', array(
'user_lotw_password' => array(
'name' => 'user_lotw_password',
'type' => 'VARCHAR',
'constraint' => '64',
'null' => TRUE
)
));
}
}

Wyświetl plik

@ -0,0 +1,31 @@
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Migration_increase_qth_column_size extends CI_Migration
{
public function up()
{
// In the table defined by varialble $this->config->item('table_name') change COL_QTH to be varchar 255
$this->dbforge->modify_column($this->config->item('table_name'), array(
'COL_QTH' => array(
'name' => 'COL_QTH',
'type' => 'VARCHAR',
'constraint' => '255',
'null' => TRUE
)
));
}
public function down()
{
// Change it back to 64
$this->dbforge->modify_column($this->config->item('table_name'), array(
'COL_QTH' => array(
'name' => 'COL_QTH',
'type' => 'VARCHAR',
'constraint' => '64',
'null' => TRUE
)
));
}
}

Wyświetl plik

@ -0,0 +1,27 @@
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Migration_upload_so124_to_lotw extends CI_Migration
{
public function up()
{
// update column COL_SAT_NAME to SO-124 if its HADES-R
$this->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
}
}

Wyświetl plik

@ -0,0 +1,30 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
* Tag Cloudlog as 2.6.17
*/
class Migration_tag_2_6_17 extends CI_Migration {
public function up()
{
// Tag Cloudlog 2.6.17
$this->db->where('option_name', 'version');
$this->db->update('options', array('option_value' => '2.6.17'));
// Trigger Version Info Dialog
$this->db->where('option_type', 'version_dialog');
$this->db->where('option_name', 'confirmed');
$this->db->update('user_options', array('option_value' => 'false'));
}
public function down()
{
$this->db->where('option_name', 'version');
$this->db->update('options', array('option_value' => '2.6.16'));
}
}

Wyświetl plik

@ -22,10 +22,7 @@
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/fontawesome/css/fontawesome.css">
<link href="<?php echo base_url(); ?>assets/fontawesome/css/brands.css" rel="stylesheet" />
<link href="<?php echo base_url(); ?>assets/fontawesome/css/solid.css" rel="stylesheet" />
<link href="<?php echo base_url(); ?>assets/fontawesome/css/sharp-thin.css" rel="stylesheet" />
<link href="<?php echo base_url(); ?>assets/fontawesome/css/duotone-thin.css" rel="stylesheet" />
<link href="<?php echo base_url(); ?>assets/fontawesome/css/sharp-duotone-thin.css" rel="stylesheet" />
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/jquery.fancybox.min.css" />
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/flag-icons.min.css" />

Wyświetl plik

@ -499,6 +499,18 @@
]
}
},
"SO-124":{
"Modes":{
"V/U":[
{
"Uplink_Mode":"FM",
"Uplink_Freq":"145925000",
"Downlink_Mode":"FM",
"Downlink_Freq":"436885000"
}
]
}
},
"SONATE-2":{
"Modes":{
"V":[