Skip to content

Commit

Permalink
fix: option for automigration added
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricerenck committed Feb 28, 2024
1 parent e33d2ad commit a918c86
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ or
| matomoToken | | Your Matomo auth token |
| setId3Data | `false` | Write ID3 data like title or description to the episode page after mp3 upload |
| sanitize | `false` | Enable to sanitize data after migration from version 2 |
| autoMigration | `true` | Disable this to not automatically migrate data (may help with low page speed) |
| useApi | `true` | Use the Podcaster API for Apple categories and other meta data |

6 changes: 4 additions & 2 deletions internal/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
}
},
'system.loadPlugins:after' => function () {
$migrations = new Migrations();
$migrations->migrate();
if (option('mauricerenck.podcaster.autoMigration', true)) {
$migrations = new Migrations();
$migrations->migrate();
}

if (option('mauricerenck.podcaster.sanitize', false)) {
$migrations->sanitize();
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php return array(
'root' => array(
'name' => 'mauricerenck/podcaster',
'pretty_version' => '3.0.3',
'version' => '3.0.3.0',
'pretty_version' => '3.1.0',
'version' => '3.1.0.0',
'reference' => NULL,
'type' => 'kirby-plugin',
'install_path' => __DIR__ . '/../../',
Expand Down Expand Up @@ -38,8 +38,8 @@
'dev_requirement' => false,
),
'mauricerenck/podcaster' => array(
'pretty_version' => '3.0.3',
'version' => '3.0.3.0',
'pretty_version' => '3.1.0',
'version' => '3.1.0.0',
'reference' => NULL,
'type' => 'kirby-plugin',
'install_path' => __DIR__ . '/../../',
Expand Down

0 comments on commit a918c86

Please sign in to comment.