You are here

UPGRADE.txt in Domain Access 7.3

Same filename and directory in other branches
  1. 6.2 UPGRADE.txt
  2. 7.2 UPGRADE.txt

Upgrade instructions for Domain Access

File

UPGRADE.txt
View source
  1. /**
  2. * @file
  3. * Upgrade instructions for Domain Access
  4. */
  5. CONTENTS
  6. --------
  7. 1. Upgrading from Drupal 6 to Drupal 7
  8. 2. Upgrading from Domain Access 7.x.2 to 7.x.3.
  9. 3. Upgrading from Domain Access 6.x.1 to 6.x.2
  10. 3.1. Who Needs to Upgrade?
  11. 3.2. How to Upgrade
  12. 3.3. Error Notices
  13. 3.4. Change Summary
  14. 4. Upgrading From Drupal 5
  15. ----
  16. 1. Upgrading from Drupal 6 to Drupal 7
  17. To upgrade Domain Access from Drupal 6 to Drupal 7, you should follow
  18. Drupal's guide (found in the core UPGRADE.txt file in Drupal's root directory.)
  19. When upgrading, follow the additional steps below to ensure that the required
  20. changes for Domain Access do not interfere with Drupal's update process.
  21. -- Remove the Domain Access include line from settings.php.
  22. /**
  23. * Add the domain module setup routine.
  24. */
  25. include './sites/all/modules/domain/settings.inc';
  26. See INSTALL.txt for more information about this code.
  27. -- Update Drupal, following the process described in the core UPGRADE.txt.
  28. This step includes disabling (but not uninstalling) all Domain Access modules
  29. before you continue.
  30. -- Download Domain Access for Drupal 7.
  31. -- Run the database update script.
  32. This step will make the necessary changes that update Domain Access for
  33. Drupal 7.
  34. -- Enable the Domain Access module.
  35. -- Add the Domain Access settings line back to settings.php. Be sure to
  36. include these lines _below_ the database configuration information. (The
  37. Drupal update may place the new $databases array at the bottom of
  38. settings.php.)
  39. /**
  40. * Add the domain module setup routine.
  41. */
  42. include DRUPAL_ROOT . './sites/all/modules/domain/settings.inc';
  43. Refer to the Domain Access INSTALL.txt for information about the new syntax
  44. for the Domain Access include.
  45. -- If prompted, rebuild content access permissions.
  46. -- Enable Domain submodules (if desired).
  47. You should now be ready to use your Drupal 7 site.
  48. ----
  49. 2. Upgrading from Domain Access 7.x.2 to 7.x.3.
  50. If you are using Domain Access 7.x.2, you must upgrade to 7.x.3 using the
  51. Drupal update script. To do so, follow the steps below.
  52. -- Disable Domain Access 7.x.2 and its dependent modules.
  53. -- Download Domain Access 7.x.3 and replace the existing 'domain' files
  54. with the new module files.
  55. -- Run update.php, either through the user interface or drush.
  56. -- Enable Domain Access and its dependent modules.
  57. If you do not disable the module before upgrading, fatal errors will occur.
  58. These errors are temporary but look pretty scary. Your site will not be
  59. damaged, so Don't Panic.
  60. After you upgrade, you may be prompted to perform additional actions. Simply
  61. follow the on-screen instructions. These additional updates may not be
  62. accessible via drush.
  63. ----
  64. 3. Upgrading from Domain Access 6.x.1 to 6.x.2
  65. If you are using Domain Access 6.x.1, you must upgrade to 6.x.2 before
  66. migrating to Drupal 7. This section outlines that upgrade process.
  67. ----
  68. 3.1 Who Needs to Upgrade?
  69. If you are using Domain Access prior to 6.x.2.0, then you should
  70. follow these upgrade instructions.
  71. Note that if you are upgrading from 6.x.1 to 7.x.2, you must first perform this
  72. update in Drupal 6.
  73. ----
  74. 3.2 How to Upgrade
  75. In previous versions, Domain Access asked you to make several
  76. changes to your site's settings.php file. The 6.x.2.0 version
  77. has made this process easier.
  78. NOTE: You must leave the Domain Access module and its child
  79. modules turned on during the upgrade process.
  80. When you first update the source code, you may see some
  81. Drupal error messages printed on screen. These are normal and
  82. will disappear after the upgrade is complete.
  83. To upgrade, follow the steps below.
  84. STEP 1: Update the module source code
  85. Replace your existing module files with the new downloaded source.
  86. STEP 2: Add new code to settings.php
  87. Add the following code to your site's settings.php file:
  88. /**
  89. * Add the domain module setup routine.
  90. */
  91. include './sites/all/modules/domain/settings.inc';
  92. See INSTALL.txt for additional information.
  93. STEP 3: Remove old code from settings.php
  94. If you have any of the following code in settings.php from earlier
  95. versions, you should remove it:
  96. /**
  97. * Add the custom_url_rewrite_outbound function.
  98. */
  99. require_once './sites/all/modules/domain/settings_custom_url.inc';
  100. /**
  101. * Add the domain_conf settings override
  102. */
  103. require_once './sites/all/modules/domain/domain_conf/settings_domain_conf.inc';
  104. /**
  105. * Add the domain_prefix tables
  106. */
  107. require_once './sites/all/modules/domain/domain_prefix/settings_domain_prefix.inc';
  108. STEP 4: Register the module updates
  109. After you have edited settings.php, log in to your Primary Domain as user 1
  110. and run the Drupal update script.
  111. The update must be run from your primary domain.
  112. STEP 5: Rebuild node access permissions
  113. After running the update script, when you return to the administration pages
  114. you will be prompted to rebuild the node access table. Click on the link or go
  115. to Admin > Content > Post settings and click the 'Rebuild Permissions' button.
  116. STEP 6: Reset permissions for domain module
  117. The old 'Content Editing Forms' setting has been replaced by role-based
  118. permissions. Please see section 3.1 of README.txt and reset your
  119. site permissions accordingly. The upgrade does not split permissions for you.
  120. There are also new permissions documented in README.txt.
  121. ----
  122. 3.3 Error Notices
  123. If your module is not configured correctly, you should see an error notice
  124. on the top of the page -- this message is shown only to users with the
  125. 'administer domains' permission. The error is also written to your site's
  126. error logs, if any.
  127. If you encounter this error, please check that you have installed or upgraded
  128. the module correctly. If the problem persists, please file a support request
  129. at http://drupal.org/project/domain.
  130. ----
  131. 3.4 Change Summary
  132. Below are some notes about the changes to the new version.
  133. -- Pre-load functions are now handled automatically.
  134. -- Domain Alias has been added.
  135. -- The old setting for 'Content editing forms' has been made a permission,
  136. so these functions can now be set per user role.
  137. -- The Primary Domain is now stored in both the {variables} and
  138. {domain} tables. Doing so allows full integration with Views and
  139. simplifies some of the core code. However, it will also force the module
  140. to skip a domain_id in the database. This change will not cause any
  141. issues, but there will be a skipped domain_id for all sites.
  142. -- Fresh installs of Domain Access will never have a domain_id of 1.
  143. -- The 'domain editor' grant has been deprecated.
  144. -- The new function domain_get_user_domains($uid) can be used
  145. to find which domains as user is assigned to.
  146. ----
  147. 4. Upgrading from Drupal 5
  148. The upgrade process should work fine when upgrading from Drupal 5 to Drupal 6.
  149. Upgrading from Drupal 5 to Drupal 7 is not supported.
  150. Best practice is to disable contributed modules when upgrading Drupal.
  151. Be sure you disable (but do not uninstall) the Domain Access module
  152. before upgrading Drupal.
  153. When you have upgraded Drupal core, you may upgrade Domain Access.
  154. Be sure to turn the Domain Access module (and its children) back on
  155. before running any Domain Access updates.