Remove Update Grid for whole DB sat Update

This commit is contained in:
int2001
2025-12-14 10:29:04 +00:00
parent 0a1ba3e8de
commit 4f09fdb11a

View File

@@ -316,15 +316,15 @@ class Update extends CI_Controller {
private function fix_migrations(){
$res = $this->db->query("SELECT version FROM migrations");
if ($res->num_rows() >0){
$row = $res->row();
$version = $row->version;
$res = $this->db->query("SELECT version FROM migrations");
if ($res->num_rows() >0){
$row = $res->row();
$version = $row->version;
if ($version < 7){
$this->db->query("UPDATE migrations SET version=7");
}
}
if ($version < 7){
$this->db->query("UPDATE migrations SET version=7");
}
}
}
public function check_missing_dxcc($all = false){
@@ -335,18 +335,7 @@ class Update extends CI_Controller {
}
$this->load->model('logbook_model');
$this->logbook_model->check_missing_dxcc_id($all);
}
public function check_missing_grid($all = false){
$this->load->model('user_model');
if (!$this->user_model->authorize(99)) {
$this->session->set_flashdata('error', __("You're not allowed to do that!"));
redirect('dashboard');
}
$this->load->model('logbook_model');
$this->logbook_model->check_missing_grid_id($all);
$this->logbook_model->check_missing_dxcc_id($all);
}
public function update_clublog_scp() {