Skip to content

Commit

Permalink
fix C+P mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
phl0 committed Oct 19, 2022
1 parent ebe05ae commit 5d9b69f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions application/migrations/104_user_auto_qth_option.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
defined('BASEPATH') OR exit('No direct script access allowed');

/*
* This adds an option to enable grid and name lookup
* for WWFF references
* This adds an option to enable grid lookup
* by location entered
*/

class Migration_user_auto_qth_option extends CI_Migration {

public function up()
{
if (!$this->db->field_exists('user_wwff_lookup', 'users')) {
if (!$this->db->field_exists('user_qthlookup', 'users')) {
$fields = array(
'user_wwff_lookup integer DEFAULT 0 AFTER user_sota_lookup',
'user_qth_lookup integer DEFAULT 0 AFTER user_wwff_lookup',
);

$this->dbforge->add_column('users', $fields);
Expand All @@ -22,8 +22,8 @@ public function up()

public function down()
{
if ($this->db->field_exists('user_wwff_lookup', 'users')) {
$this->dbforge->drop_column('users', 'user_wwff_lookup');
if ($this->db->field_exists('user_qth_lookup', 'users')) {
$this->dbforge->drop_column('users', 'user_qth_lookup');
}
}
}

1 comment on commit 5d9b69f

@m0urs
Copy link
Contributor

@m0urs m0urs commented on 5d9b69f Oct 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately still a typo in line 14 :-)

"user_qthlookup" instead of "user_qth_lookup"

Please sign in to comment.