From 4f09fdb11aad6eaa0bb5296247e19707bf84537f Mon Sep 17 00:00:00 2001 From: int2001 Date: Sun, 14 Dec 2025 10:29:04 +0000 Subject: [PATCH] Remove Update Grid for whole DB sat Update --- application/controllers/Update.php | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/application/controllers/Update.php b/application/controllers/Update.php index 24b80c296..6b51601f1 100644 --- a/application/controllers/Update.php +++ b/application/controllers/Update.php @@ -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() {