mirror of
https://github.com/magicbug/Cloudlog
synced 2026-08-13 17:49:35 -04:00
Bump migration version to 247 and add a migration that creates performance indexes for LoTW workflows (idx_lotw_qslrdate, idx_lotw_qsos_to_upload, idx_lotw_confirmation_match) to speed common queries. Refactor Lotw controller to collect records in memory, build rows for rendering, and perform a single batch confirmation update via a new Logbook_model::lotw_update_batch() method instead of many individual updates. Implement lotw_update_batch() to look up matching QSOs, perform update_batch() calls, and separately update gridsquares/distances using the Qra library. Simplify LotwCert::toggle_archive_certificate() to toggle archived state with a single UPDATE and return the resulting status.
41 lines
1.3 KiB
PHP
41 lines
1.3 KiB
PHP
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Enable/Disable Migrations
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Migrations are disabled by default but should be enabled
|
|
| whenever you intend to do a schema migration.
|
|
|
|
|
*/
|
|
$config['migration_enabled'] = TRUE;
|
|
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Migrations version
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This is used to set migration version that the file system should be on.
|
|
| If you run $this->migration->latest() this is the version that schema will
|
|
| be upgraded / downgraded to.
|
|
|
|
|
*/
|
|
|
|
$config['migration_version'] = 247;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Migrations Path
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Path to your migrations folder.
|
|
| Typically, it will be within your application path.
|
|
| Also, writing permission is required within the migrations path.
|
|
|
|
|
*/
|
|
$config['migration_path'] = APPPATH . 'migrations/';
|
|
|
|
|
|
/* End of file migration.php */
|
|
/* Location: ./application/config/migration.php */
|