-
-
Notifications
You must be signed in to change notification settings - Fork 192
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 #1019 from AndreasK79/selectable_columns
[User selectable columns] Added the possibility to configure some of …
- Loading branch information
Showing
12 changed files
with
511 additions
and
81 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
defined('BASEPATH') OR exit('No direct script access allowed'); | ||
|
||
$lang['account_logbook_fields'] = 'Logbook fields'; | ||
$lang['account_column1_text'] = 'Choose column 1'; | ||
$lang['account_column2_text'] = 'Choose column 2'; | ||
$lang['account_column3_text'] = 'Choose column 3'; | ||
$lang['account_column4_text'] = 'Choose column 4'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
|
||
defined('BASEPATH') OR exit('No direct script access allowed'); | ||
|
||
/* | ||
* This migration creates a table called options which will hold global options needed within cloudlog | ||
* removing the need for lots of configuration files. | ||
*/ | ||
|
||
class Migration_add_user_definable_columns extends CI_Migration { | ||
|
||
public function up() | ||
{ | ||
$fields = array( | ||
'user_column1 varchar(32) default "Mode"', | ||
); | ||
|
||
$this->dbforge->add_column('users', $fields); | ||
|
||
$fields = array( | ||
'user_column2 varchar(32) default "RSTS"', | ||
); | ||
|
||
$this->dbforge->add_column('users', $fields); | ||
|
||
$fields = array( | ||
'user_column3 varchar(32) default "RSTR"', | ||
); | ||
|
||
$this->dbforge->add_column('users', $fields); | ||
|
||
$fields = array( | ||
'user_column4 varchar(32) default "Band"', | ||
); | ||
|
||
$this->dbforge->add_column('users', $fields); | ||
} | ||
|
||
public function down() | ||
{ | ||
$this->dbforge->drop_column('users', 'user_column1'); | ||
$this->dbforge->drop_column('users', 'user_column2'); | ||
$this->dbforge->drop_column('users', 'user_column3'); | ||
$this->dbforge->drop_column('users', 'user_column4'); | ||
} | ||
} |
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
Oops, something went wrong.