Added Migration to Add the None-DXCC

This commit is contained in:
int2001
2024-10-10 06:31:41 +00:00
parent ea84b403f1
commit 0c8e75cac4
2 changed files with 15 additions and 1 deletions

View File

@@ -22,7 +22,7 @@ $config['migration_enabled'] = TRUE;
|
*/
$config['migration_version'] = 221;
$config['migration_version'] = 222;
/*
|--------------------------------------------------------------------------

View 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");
}
}