Skip to content

Commit

Permalink
fixed for opCommunityTopicPlugin (refs openpne#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kousuke Ebihara committed Nov 17, 2009
1 parent 3bc20de commit 7c7a26a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions data/migrations/3.1.2/018_change_oauth_column_for_member.php
Expand Up @@ -16,6 +16,14 @@ public function up()
'notnull' => '0',
'comment' => 'Member id',
));

// and try to fix community topic revision if the plugin is exists
$conn = Doctrine_Manager::getInstance()->getConnectionForComponent('SnsConfig');
$result = $conn->fetchOne('SELECT value FROM sns_config WHERE name = ?', array('opCommunityTopicPlugin_revision'));
if (!$result)
{
Doctrine::getTable('SnsConfig')->set('opCommunityTopicPlugin_revision', '4');
}
}

public function down()
Expand Down

0 comments on commit 7c7a26a

Please sign in to comment.