You are here

UPGRADE.txt in Domain Access 7.2

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