Skip to content

Commit

Permalink
Do not break migrations of other plugins
Browse files Browse the repository at this point in the history
SPR-850
  • Loading branch information
micgro42 committed Mar 15, 2017
1 parent 9a348f2 commit 3eafcba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions action/migration.php
Expand Up @@ -30,6 +30,9 @@ public function register(Doku_Event_Handler $controller) {
* @param $param
*/
public function handle_migrations(Doku_Event $event, $param) {
if ($event->data['sqlite']->getAdapter()->getDbname() !== 'struct') {
return;
}
$to = $event->data['to'];

if(is_callable(array($this, "migration$to"))) {
Expand Down

0 comments on commit 3eafcba

Please sign in to comment.