Skip to content

Commit

Permalink
Updated API schema.
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Sturgeon committed May 1, 2012
1 parent 8dfc743 commit 628d8cc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion system/cms/config/migration.php
Expand Up @@ -23,7 +23,7 @@
| |
*/ */


$config['migration_version'] = 90; $config['migration_version'] = 91;


/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
Expand Down
21 changes: 21 additions & 0 deletions system/cms/migrations/091_Fix_api_stream_view.php
@@ -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');
}
}

0 comments on commit 628d8cc

Please sign in to comment.