update koneksi DB
This commit is contained in:
@@ -6,7 +6,7 @@ class Accountingrepair extends CI_Controller
|
||||
public function __construct() { parent::__construct(); if(!is_cli()) show_404(); $this->load->library('AuditService'); }
|
||||
public function duplicate_refs()
|
||||
{
|
||||
if (strtolower((string)getenv('APP_ENV')) === 'production') { echo "Ditolak: repair ini hanya untuk development.\n"; return; }
|
||||
if (strtolower((string)app_env('APP_ENV', ENVIRONMENT)) === 'production') { echo "Ditolak: repair ini hanya untuk development.\n"; return; }
|
||||
$groups=$this->db->select('no_ref, COUNT(*) total')->from('journals')->group_by('no_ref')->having('COUNT(*) >',1)->get()->result();
|
||||
$changed=0; $this->db->trans_begin();
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user