Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #194 from teabreakninja/master
DXCC match on date as well as callsign. Table schema updates
- Loading branch information
Showing
6 changed files
with
83 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
application/migrations/011_add_dxcc_prefixes_start_end.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); | ||
|
||
class Migration_add_dxcc_prefixes_start_end extends CI_Migration { | ||
|
||
public function up(){ | ||
$fields = (array( | ||
'start' => array( | ||
'type' => 'date', | ||
'Null' => TRUE | ||
), | ||
'end' => array( | ||
'type' => 'date', | ||
'Null' => TRUE | ||
), | ||
)); | ||
|
||
$this->dbforge->add_column('dxcc_prefixes', $fields); | ||
} | ||
|
||
public function down(){ | ||
$this->dbforge->drop_table('dxcc_prefixes'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); | ||
|
||
class Migration_add_dxcc_entities_start extends CI_Migration { | ||
|
||
public function up(){ | ||
$fields = (array( | ||
'start' => array( | ||
'type' => 'date', | ||
'Null' => TRUE | ||
), | ||
)); | ||
|
||
$this->dbforge->add_column('dxcc_entities', $fields); | ||
} | ||
|
||
public function down(){ | ||
$this->dbforge->drop_table('dxcc_entities'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters