Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Phil Sturgeon
committed
May 1, 2012
1 parent
8dfc743
commit 628d8cc
Showing
2 changed files
with
22 additions
and
1 deletion.
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,21 @@ | |||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); | |||
|
|||
class Migration_Fix_api_stream_view extends CI_Migration | |||
{ | |||
public function up() | |||
{ | |||
// Set the custom view fields for this stream | |||
$this->db | |||
->set('view_options', serialize(array('id', 'key', 'user_id', 'level', 'created'))) | |||
->where('stream_name', 'lang:api:api_keys') | |||
->update('data_streams'); | |||
} | |||
|
|||
public function down() | |||
{ | |||
$this->db | |||
->set('view_options', null) | |||
->where('stream_name', 'lang:api:api_keys') | |||
->update('data_streams'); | |||
} | |||
} |