stable
Clone or download
story #10640 Have all mediawiki tables in one database
Introduce a new parameter in mediawiki configuration to allow usage of a central database to group all mediawiki instances. The split is then done using a table prefix. ATM it doesn't change the way mediawiki are created (in a dedicated DB), you will need to trigger a system event to kick the conversion: /usr/share/tuleap/src/utils/php-launcher.sh \ /usr/share/tuleap/plugins/mediawiki/move_to_single_db.php \ project_id After that, everything should continue to work transparently (once the system event is consumed). Especially the management of users and groups and site admin stats. Before moving to a central db, you will have to create a new db in your mysql instance and granting your db users the approriate rights on it (see config for more insights on how to do that). Change-Id: Ied2d83421925cffafa3dc8116f3d756aeea27e1d
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/mediawiki/etc/mediawiki.inc.dist | +10 | −1 | Go to diff View file |
M | plugins/mediawiki/include/MediawikiAdminController.class.php | +4 | −5 | Go to diff View file |
M | plugins/mediawiki/include/MediawikiDao.class.php | +127 | −76 | Go to diff View file |
M | plugins/mediawiki/include/MediawikiInstantiater.class.php | +2 | −2 | Go to diff View file |
M | plugins/mediawiki/include/MediawikiManager.class.php | +14 | −0 | Go to diff View file |
A | plugins/mediawiki/include/Migration/MoveToCentralDbDao.php | +93 | −0 | Go to diff View file |
M | plugins/mediawiki/include/autoload.php | +5 | −3 | Go to diff View file |
A | plugins/mediawiki/include/events/SystemEvent_MEDIAWIKI_TO_CENTRAL_DB.php | +86 | −0 | Go to diff View file |
M | plugins/mediawiki/include/mediawikiPlugin.class.php | +23 | −13 | Go to diff View file |
A | plugins/mediawiki/move_to_single_db.php | +35 | −0 | Go to diff View file |
M | plugins/mediawiki/www/LocalSettings.php | +15 | −8 | Go to diff View file |
M | plugins/mediawiki/www/forge_admin.php | +8 | −1 | Go to diff View file |
M | plugins/mediawiki/www/skins/Tuleap/Tuleap.php | +11 | −2 | Go to diff View file |
M | plugins/mediawiki/www/skins/Tuleap123/Tuleap123.php | +11 | −2 | Go to diff View file |
M | src/common/dao/include/DataAccessObject.class.php | +14 | −2 | Go to diff View file |