| This page (and all pages in the Tech: namespace) is a developer discussion about a feature that is either proposed for inclusion in JAMWiki or one that has already been implemented. This page is NOT documentation of JAMWiki functionality - for a list of documentation, see Category:JAMWiki.
Status of this feature: IMPLEMENTED. This functionality was included in JAMWiki 0.6.6.
|
| Contents |
|---|
Provide a way to easily move a JAMWiki installation from one database to another.
The primary use case is to convert a wiki that has been created using the default "Internal" HSQL database to a "Production" database, for example MySQL, Oracle etc.
The code has been checked into the Subversion trunk repository. It has not yet been tested with all combinations of databases.
The function is accessed via the 'Special:Maintenance' page. Enter the parameters for the new database (which must not contain any JAMWiki tables), the hit the 'Migrate' button. The JAMWiki database tables will be created in the new database as for an initial configuration; but instead of setting up a default wiki, the existing wiki is copied from the pre-existing database tables into the new database.
Once completed (which could take a while depending on the size of the wiki), the configuration is updated to point to the new database. The old database is not touched by this operation; in case of problems with the new database, the administrator could revert to the old database by restoring the database properties on the Special:Configuration page.
Changes HAVE NOT been saved An unknown system error has occurred. The error message is: Failure while executing CREATE TABLE jam_virtual_wiki ( virtual_wiki_id INTEGER NOT NULL, virtual_wiki_name VARCHAR(100) NOT NULL, default_topic_name VARCHAR(200) NOT NULL, create_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL, CONSTRAINT jam_p_vwiki PRIMARY KEY (virtual_wiki_id), CONSTRAINT jam_u_vwiki_name UNIQUE (virtual_wiki_name) ). An unknown system error has occurred. The error message is: ERROR: relation "jam_wiki_user" does not exist.