// $Id: UPGRADE.txt,v 1.4 2008-10-12 23:23:43 agentken Exp $ /** * @file * UPGRADE instructions for Domain Access 6.x.2 */ CONTENTS -------- 1. Who Needs to Upgrade? 2. How to Upgrade 3. Error Notices 4. Change Summary ---- 1. Who Needs to Upgrade? If you are using Domain Access prior to 6.x.2.0, then you should follow these upgrade instructions. ---- 2. How to Upgrade In previous versions, Domain Access asked you to make several changes to your site's settings.php file. The 6.x.2.0 version has made this process easier. To upgrade, follow the steps below. STEP 1: Update the module source code Replace your existing module files with the new downloaded source. STEP 2: Add new code to settings.php Add the following code to your site's settings.php file: /** * Add the domain module setup routine. */ include './sites/all/modules/domain/settings.inc'; See INSTALL.txt for additional information. STEP 3: Remove old code from settings.php If you have any of the following code in settings.php from eariler versions, you should remove it: /** * Add the custom_url_rewrite_outbound function. */ require_once './sites/all/modules/domain/settings_custom_url.inc'; /** * Add the domain_conf settings override */ require_once './sites/all/modules/domain/domain_conf/settings_domain_conf.inc'; /** * Add the domain_prefix tables */ require_once './sites/all/modules/domain/domain_prefix/settings_domain_prefix.inc'; STEP 4: Register the module updates After your have editing settings.php, log in to your Primary Domain as user 1 and run the Drupal update script. The update must be run from your primary domain. STEP 5: Rebuild node access permissions After running the update script, when you return to the administration pages you will be prompted to rebuild the node access table. Click on the link or go to Admin > Content > Post settings and click the 'Rebuild Permissions button. ---- 3. Error Notices If your module is not configured correctly, you should see an error notice on the top of the page -- this message is shown only to users with the 'administer domains' permission. The error is also written to your site's error logs, if any. If you encourter this error, please check that you have installed or upgraded the module correctly. If the problem persists, please file a support request at http://drupal.org/project/domain ---- 4. Change Summary Below are some notes about the changes to the new version. -- Pre-load functions are now handled automatically. -- Domain Alias has been added. -- The Primary Domain is now stored in both the {variables} and {domain} tables. Doing so allows full integration with Views and simplifies some of the core code. However, it will also force the module to skip a domain_id in the database. This change will not cause any issues, but there will be a skipped domain_id for all sites. -- Fresh installs of Domain Access will never have a domain_id of 2. -- The 'domain editor' grant has been deprecated. -- The new function domain_user_ger_user_domains($uid) can be used to find which domains as user is assigned to.