mirror of
https://github.com/magicbug/Cloudlog
synced 2026-08-13 17:49:35 -04:00
Added Mig for IDX
This commit is contained in:
parent
903d2248ca
commit
c0f08d2be7
1 changed files with 16 additions and 0 deletions
16
application/migrations/163_dxcc_index.php
Normal file
16
application/migrations/163_dxcc_index.php
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Migration_dxcc_index extends CI_Migration {
|
||||
|
||||
public function up() {
|
||||
$this->db->query("ALTER TABLE `dxcc_prefixes` ADD INDEX `idx_dxcc_prefixes_logic` (`call`, `start`, `end`)");
|
||||
$this->db->query("ALTER TABLE `dxcc_exceptions` ADD INDEX `idx_dxcc_exceptions_logic` (`call`, `start`, `end`)");
|
||||
}
|
||||
|
||||
public function down(){
|
||||
$this->db->query("ALTER TABLE dxcc_prefixes DROP INDEX idx_dxcc_prefixes_logic");
|
||||
$this->db->query("ALTER TABLE dxcc_exceptions DROP INDEX idx_dxcc_eceptions_logic");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue