Skip to content

Commit

Permalink
removed useless migration for 3.1.2 (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 e1f5ed9 commit 3bc20de
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion data/migrations/3.1.2/011_creating_3_1_1_tables.php
Expand Up @@ -77,7 +77,6 @@ public function migrate($direction)
array(
'id' => array('type' => 'integer', 'length' => '4', 'primary' => '1'),
'oauth_consumer_id' => array('type' => 'integer', 'notnull' => '1', 'length' => '4'),
'admin_user_id' => array('type' => 'integer', 'notnull' => '1', 'length' => '4'),
'key_string' => array('type' => 'string', 'default' => '', 'notnull' => '1', 'length' => '16'),
'secret' => array('type' => 'string', 'default' => '', 'notnull' => '1', 'length' => '32'),
'type' => array('type' => 'enum', 'values' => array(0 => 'request', 1 => 'access'), 'default' => 'request', 'length' => ''),
Expand Down
9 changes: 0 additions & 9 deletions data/migrations/3.1.2/012_creating_3_1_1_keys.php
Expand Up @@ -51,15 +51,6 @@ public function migrate($direction)
'foreignTable' => 'banner_image',
));

$this->foreignkey($direction, 'o_auth_admin_token', 'o_auth_admin_token_admin_user_id_admin_user_id', array(
'name' => 'o_auth_admin_token_admin_user_id_admin_user_id',
'local' => 'admin_user_id',
'foreign' => 'id',
'foreignTable' => 'admin_user',
'onUpdate' => '',
'onDelete' => 'cascade',
));

$this->foreignkey($direction, 'oauth_consumer', 'oauth_consumer_file_id_file_id', array(
'name' => 'oauth_consumer_file_id_file_id',
'local' => 'file_id',
Expand Down
4 changes: 0 additions & 4 deletions data/migrations/3.1.2/014_dropping_oauth_admin_user.php
Expand Up @@ -12,14 +12,10 @@ class droppingOAuthAdminUser extends Doctrine_Migration_Base
{
public function up()
{
$this->removeColumn('o_auth_admin_token', 'admin_user_id');
}

public function down()
{
$this->addColumn('o_auth_admin_token', 'admin_user_id', 'integer', 4, array(
'notnull' => '1',
));
}
}

0 comments on commit 3bc20de

Please sign in to comment.