-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Medicula (former pnMedic) is primarily aimed at developers and has several tools for cleaning up the Zikula database of orphaned data. There are functions to remove undefined tables, orphaned hooks and module variables.
WARNING: Please create a database backup before using any actions of Medicula!
This module was developed to assist in some common issues I come across when deveoping modules for Zikula. It's main purpose was to keep me from having to execute cleanup queries directly against a MySQL instance. Several of the tools in this module are low-level and although they follow the API, several checks may be skipped. They're designed to be as accurate as possible, but you must use your own judgement before deleting things.
This module is intented for administrators only and only checks for full admin rights when running.
- Module Variables - This tool will find module variables that have no module in the system. Sometimes, these can be left laying around when testing an module init/remove routine did not work as expected.
- Database Tables - This will report any tables that have no definition, or to be more exact, without a locatable pntables.php.
- Module Hooks - Shows any hooks that have no source module.
- User Sessions - This tool allows you to delete any user session (except your current one).
- Modules - This tool presents a list of all modules in the system regardless of state. It's main purpose is to allow you to "force delete" any module. Note that the module record is simply deleted from the database. No extra work like deleting related hooks is performed automatically.
- Module-State - it is possible to change to module state without any interactions and initializations steps.
If you have no "bad" data to work with, you can still test the operation of Medicula for yucks if you like. Just use the "Test Data" tool do create some junk records in the system that you can then delete. Fun!