Beruflich Dokumente
Kultur Dokumente
Version 1.0
Table of Contents
1. Introduction ................................................. ............................................... 3 1.1. History ................................................. ............................................... 3 2. Basics ................................................ ........................................................... 3 2.1. Introduction ........ .................................................. ............................ 3 2.2. File and Directory Structure ........................................................... .. 4 2.3. Migration process of 3rd party extensions ... .................................. 4 2.3. JUpgrade class .................................................................................... 6 3. XML's to update .......................................... .............................................. ..7 3.1. Introduction ....................................................................................7 3.1. XML Collection ................................................ ................................... 7 3.2. XML Extension ................................ ...................................................8 4. Building jUpgrade adapter .......................................................... .............. .8 4.1. Adapter structure ............................................................ ................. 8 4.2. Migration techniques ... .... .................................................. ............ 8 4.2. Access database ... .. ............................................................. ............ 8 5. Developer Guidelines ................................................................. ................ 9 5.3. SVN Access ............................................... ......................................... 9 5.4. Using SVN ...................................................... .................................... 9 6. About the Project ................................................... .................................... 9 6.1. Project ............................................................ ................................... 9 6.3. Home, Forums, Developer Resources .............................................. 9
Chapter 2.Basics
2.1 Introduction
jUpgrade is a component for Joomla! 1.5. It should be installed as an extension through the extension manager. Once installed and configured on a Joomla! 1.5 site, it can be executed and, if everything works properly, it will perform the following tasks: Download the latest version of Joomla! 1.6 to your server (if you use the latest version of jUpgrade, this will be the latest version of Joomla! 1.6) Perform an automatic installation of Joomla! 1.6 Migrate all data from the old Joomla 1.5! site to the newly installed Joomla! 1.6 site
In principle, only the core data will be migrated 100%. For data from third-party extensions, jUpgrade provides the tools necessary to integrate migration schemes specific to each extension, which should be developed by the authors. At the time of writing this documentation, only Adminpraise and Kunena have created a plugin that allows you to migrate your data by jUpgrade.
This XML file holds the data needed to easily migrate the tables and extension files. The structure of the XML file is as follows:
<? Xml version = "1.0"?> <! DOCTYPE jupgrade> <jupgrade> <! - List of update servers ->
<updateservers> <server type = "extension" priority = "1" name = "Kunena 1.6 Update Site "> http:// update.kunena.org/kunena16.xml </ server> </ updateservers> <! - Adapter class location and name -> <! <installer> <file> Administrator/components/com_kunena/install/j16upgrade.php </ file> <class> jUpgradeComponentKunena </ class> </ installer> - -> <! - The tables to copy to the new site. -> <tables> <table>kunena_announcement</table> <table>kunena_attachments</table> <table>kunena_categories</table> <table>kunena_config</table> <table>kunena_favorites</table> <table>kunena_groups</table> <table>kunena_messages</table> <table>kunena_messages_text</table> <table>kunena_moderation</table> <table>kunena_polls</table> <table>kunena_polls_options</table> <table>kunena_polls_users</table> <table>kunena_ranks</table> <table>kunena_sessions</table> <table>kunena_smileys</table> <table>kunena_subscriptions</table> <table>kunena_subscriptions_categories</table> <table>kunena_thankyou</table> <table>kunena_users</table> <table>kunena_users_banned</table> <table>kunena_version</table> <table>kunena_whoisonline</table> </table> <! - The folders to copy to the new site. -> <folders> <folder>media/kunena</folder> <folder>administrator/components/com_kunena</folder> <folder>components/com_kunena</folder> </ folders> <! - The categories to copy to the new site. -> <! <Categories> <category section="com_kunena"> </ category> </ categories> -> </ jupgrade>
In the XML file we can add the options needed to migrate the extension through jUpgrade. This can include items like database tables, directories for media files, the updated server url and the category if any.