diff options
| author | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2023-08-18 09:59:48 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+github@gmail.com> | 2023-08-18 15:18:50 +0200 |
| commit | 2ea6cbed935d70aaeb2a8eb045a7c29845fb04ff (patch) | |
| tree | c2a67ac919f5a606f91d5dd85e6fc39cd4ea053a /cli | |
| parent | 616b36e3d4ed855b7b96d698b24f0d375c72946a (diff) | |
add a new API to count pending migrations, fixes #3069
Closes #3069 and #3022
Merge request studip/studip!2046
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/Commands/Plugins/PluginInfo.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/Commands/Plugins/PluginInfo.php b/cli/Commands/Plugins/PluginInfo.php index e1b00f4..9809b13 100644 --- a/cli/Commands/Plugins/PluginInfo.php +++ b/cli/Commands/Plugins/PluginInfo.php @@ -43,7 +43,7 @@ class PluginInfo extends AbstractPluginCommand if (is_dir($plugindir . '/migrations')) { $schemaVersion = new \DBSchemaVersion($plugin['name']); $migrator = new \Migrator($plugindir . '/migrations', $schemaVersion); - $plugin['pending_migrations'] = count($migrator->relevantMigrations(null)); + $plugin['pending_migrations'] = $migrator->pendingMigrations(); $plugin['schema_version'] = $schemaVersion->get(); } |
