PLUGIN_UNINSTALL_IRREVERSIBLE
A full uninstall was asked of a plugin with a migration that has no DOWN to undo it.
Cause
A full uninstall was asked of a plugin with a migration that has no DOWN to undo it.
A full uninstall runs the DOWN of each of the plugin's migrations, in reverse. One of them has no DOWN, and running the others and stopping there would leave the plugin's schema half undone. Nothing was changed.
Fix
- Run the uninstall with
--keep-data, which leaves the plugin's tables in place. - Or, as the plugin's author, give the migration a DOWN in a new version of the plugin.
Example
✗ "@acme/seo" has migrations that cannot be undone (20261020_120000_add_redirects).
Why: A full uninstall undoes every migration or none: stopping at the first that cannot be undone would leave the plugin's schema half undone. Nothing was changed.
Next: Use --keep-data to leave its tables in place.
Docs: https://nextlyhq.com/docs/cli/errors/plugin-uninstall-irreversible (PLUGIN_UNINSTALL_IRREVERSIBLE)PLUGIN_TABLE_IDENTITY_UNREADABLE
The database could not report the identity of a table a full uninstall drops, so the uninstall could not check its hook left it in place.
PLUGIN_UNINSTALL_KEEP_DATA_MISMATCH
An unfinished uninstall was run again with the other `--keep-data` setting than the one it began with.