CakeDC/migrations — pull request #89 by damien-biasotto (2012-09-20 06:43:35+00:00)
Title: Fix an isssue when using a migration with another datasource than the default one.

Below is an illustration of the side effect issue fixed in this PR. Since the clearCache method was not really tested we have not spend further time recreating tests for it.

Please also note that the develop branch is outdated and some commits in master have not been backported to it (which is weird for an integration branch).

# To reproduce the issue

One can highlight the problem with running the following migration:
```php
array(
'create_field' => array(
'config' => array(
'foo' => array('type' => 'string', 'null' => false, 'length' => 255)
),
),
),
'down' => array(
'drop_field' => array(
'foo' => array('bar')
),
),
);

public function before($direction) {
return true;
}

public function after($direction) {
return true;
}

}
```