mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Remove Update Grid for whole DB sat Update
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user