mirror of
https://github.com/magicbug/Cloudlog
synced 2026-08-13 17:49:35 -04:00
Bump migration version and add a new migration (246) to create/drop a 4-char prefix index on COL_GRIDSQUARE to speed LIKE queries; migration 245 now also drops the prefix index if present. Add Stations::user_owns_station and use it in Logbookadvanced_model to avoid N+1 station lookups. Add caching to Logbooks_model::list_logbook_relationships to prevent redundant queries. Optimize Oqrs_model queries to select only needed columns for several methods. Add Stats::getUniqueCallsignsConsolidated to combine multiple unique-callsign groupings into a single set of queries for better performance. Database debug toggles added where appropriate.
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'] = 246;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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 */
|