stable

Clone or download

Read-only

Purge mediawiki database and tables in deleted projects

Mediawiki comes with more than 50 tables for each projects. Those tables should be purged when the project is deleted for an healthy database. How to clean things up: # /usr/share/tuleap/plugins/mediawiki/bin/clean-unused-db.php While tell you what the script will purge # /usr/share/tuleap/plugins/mediawiki/bin/clean-unused-db.php go Does the purge. Part of story #10640 use only one database for all mediawiki instances Change-Id: I949200fdd5abca28ea020b83132de397a4de6352

Modified Files

Name
A plugins/mediawiki/bin/clean-unused-db.php +34 −0 Go to diff View file
R plugins/mediawiki/move_to_single_db.php Go to diff View file
A plugins/mediawiki/include/Maintenance/CleanUnused.php +99 −0 Go to diff View file
A plugins/mediawiki/include/Maintenance/CleanUnusedDao.php +179 −0 Go to diff View file
A plugins/mediawiki/include/MediawikiDataDir.php +40 −0 Go to diff View file
M plugins/mediawiki/include/MediawikiInstantiater.class.php +6 −14 Go to diff View file
M plugins/mediawiki/include/autoload.php +5 −2 Go to diff View file
M plugins/mediawiki/include/mediawikiPlugin.class.php +15 −0 Go to diff View file