Skip to content

Commit 78fc867

Browse files
authored
Merge pull request wavelog#2683 from int2001/rm_grid_whole_db
Remove Update Grid for whole DB sat Update
2 parents 0a1ba3e + 4f09fdb commit 78fc867

File tree

1 file changed

+10
-21
lines changed

1 file changed

+10
-21
lines changed

application/controllers/Update.php

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -316,37 +316,26 @@ public function update_status($done=""){
316316

317317

318318
private function fix_migrations(){
319-
$res = $this->db->query("SELECT version FROM migrations");
320-
if ($res->num_rows() >0){
321-
$row = $res->row();
322-
$version = $row->version;
323-
324-
if ($version < 7){
325-
$this->db->query("UPDATE migrations SET version=7");
326-
}
327-
}
328-
}
319+
$res = $this->db->query("SELECT version FROM migrations");
320+
if ($res->num_rows() >0){
321+
$row = $res->row();
322+
$version = $row->version;
329323

330-
public function check_missing_dxcc($all = false){
331-
$this->load->model('user_model');
332-
if (!$this->user_model->authorize(99)) {
333-
$this->session->set_flashdata('error', __("You're not allowed to do that!"));
334-
redirect('dashboard');
324+
if ($version < 7){
325+
$this->db->query("UPDATE migrations SET version=7");
326+
}
335327
}
336-
337-
$this->load->model('logbook_model');
338-
$this->logbook_model->check_missing_dxcc_id($all);
339328
}
340329

341-
public function check_missing_grid($all = false){
330+
public function check_missing_dxcc($all = false){
342331
$this->load->model('user_model');
343332
if (!$this->user_model->authorize(99)) {
344333
$this->session->set_flashdata('error', __("You're not allowed to do that!"));
345334
redirect('dashboard');
346335
}
347336

348-
$this->load->model('logbook_model');
349-
$this->logbook_model->check_missing_grid_id($all);
337+
$this->load->model('logbook_model');
338+
$this->logbook_model->check_missing_dxcc_id($all);
350339
}
351340

352341
public function update_clublog_scp() {

0 commit comments

Comments
 (0)