diff --git a/application/config/migration.php b/application/config/migration.php index 73ae30f1..6aa8233a 100644 --- a/application/config/migration.php +++ b/application/config/migration.php @@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE; | be upgraded / downgraded to. | */ -$config['migration_version'] = 50; +$config['migration_version'] = 51; /* |-------------------------------------------------------------------------- diff --git a/application/controllers/Api.php b/application/controllers/Api.php index 29a5fc3e..779e0951 100644 --- a/application/controllers/Api.php +++ b/application/controllers/Api.php @@ -632,14 +632,7 @@ class API extends CI_Controller { * Check if callsign is active on LOTW * */ - $this->load->model('lotw_user'); - - $lotw_member = $this->lotw_user->check($lookup_callsign); - if($lotw_member == "not found") { - $return['lotw_member'] = false; - } else { - $return['lotw_member'] = true; - } + /* * diff --git a/application/migrations/051_delete_lotw_userlist_table.php b/application/migrations/051_delete_lotw_userlist_table.php new file mode 100644 index 00000000..a5857c48 --- /dev/null +++ b/application/migrations/051_delete_lotw_userlist_table.php @@ -0,0 +1,16 @@ +dbforge->drop_table('lotw_userlist'); + } + + public function down() + { + echo "not possible"; + } +} \ No newline at end of file diff --git a/application/models/Lotw_user.php b/application/models/Lotw_user.php deleted file mode 100644 index 33fae44c..00000000 --- a/application/models/Lotw_user.php +++ /dev/null @@ -1,37 +0,0 @@ -db->empty_table('lotw_userlist'); - } - - function add_lotwuser($callsign, $date) { - - $data = array( - 'callsign' => $callsign, - 'upload_date' => $date - ); - - $this->db->insert('lotw_userlist', $data); - } - - function check($callsign) { - $this->db->where('callsign', $callsign); - $query = $this->db->get('lotw_userlist'); - - if ($query->num_rows() > 0) { - return "active"; - } else { - return "not found"; - } - } -} -?> \ No newline at end of file