diff options
| author | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2023-08-18 09:59:48 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-08-18 09:59:48 +0000 |
| commit | 75cedc6df4797f2e2f90f06222ec5e5018fc0826 (patch) | |
| tree | 4384ee0e9b0fc7a66f7feae544a472cb607971cc /cli | |
| parent | 3bee81d9cb87eda39843435a8ceea40454154731 (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(); } |
