mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 02:14:13 +00:00
Added Migration to Add the None-DXCC
This commit is contained in:
@@ -22,7 +22,7 @@ $config['migration_enabled'] = TRUE;
|
||||
|
|
||||
*/
|
||||
|
||||
$config['migration_version'] = 221;
|
||||
$config['migration_version'] = 222;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
14
application/migrations/222_add_none_dxcc.php
Normal file
14
application/migrations/222_add_none_dxcc.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Migration_add_none_dxcc extends CI_Migration {
|
||||
|
||||
public function up() {
|
||||
$this->db->query("insert ignore into dxcc_entities (adif,`name`,prefix,ituz,cqz,cont,`long`,lat,`start`,`end`) values (0,'- NONE - (e.g. /MM, /AM)','',0,0,'',0,0,null,null)");
|
||||
}
|
||||
|
||||
public function down(){
|
||||
$this->db->query("delete from dxcc_entities where adif=0");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user