Migration file to fix LOTW url issue

pull/434/head
Peter Goodhall 2020-03-12 15:04:42 +00:00
rodzic 8b882a8bee
commit 13aa9bfe39
2 zmienionych plików z 23 dodań i 1 usunięć

Wyświetl plik

@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
| be upgraded / downgraded to.
|
*/
$config['migration_version'] = 36;
$config['migration_version'] = 37;
/*
|--------------------------------------------------------------------------

Wyświetl plik

@ -0,0 +1,22 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Migration_update_lotw_url extends CI_Migration {
public function up()
{
$sql = "UPDATE config SET lotw_download_url = 'https://lotw.arrl.org/lotwuser/lotwreport.adi' WHERE id=1";
$this->db->query($sql);
$sql = "UPDATE config SET lotw_upload_url = 'https://lotw.arrl.org/lotwuser/upload' WHERE id=1";
$this->db->query($sql);
$sql = "UPDATE config SET lotw_login_url = 'https://lotw.arrl.org/lotwuser/default' WHERE id=1";
$this->db->query($sql);
}
public function down()
{
}
}
?>