UPDATE
======

Version 7.x-1.0-alpha31 -> 7.x-1.0-alpha32
-----------------------------------------------

Release notes:

  - Add custom Petitions Profanity and Is Profane modules
  - Update user registration form to disable user input for city/state
  - Update user registration and user profile forms to disable user input for city/state/country
  - Add options to define the display of fields on the user registration and user profile forms
  - Add options to define the display of fields on the user profile page
  - Update Colorbox contrib module
  - Important: When updating to this version of the Colorbox module you need to
    update the Colorbox plugin to v1.3.21.1 or later as well.
  - Replaced hardcoded references to wethepeople@whitehouse.gov with site_mail.

Update steps:

  1. Run the update script.

       drush updb -y

  2. Enable new modules.

       drush en petitions_profanity is_profane -y

  3. Flush caches.

       drush cc all

Version 7.x-1.0-alpha30 -> 7.x-1.0-alpha31
-----------------------------------------------

Release notes:

  - Add custom Petitions Signatures Display module
  - Updated signatures location display to use stored values associated with zip code

Update steps:

  1. Enable new modules.

       drush en petitions_signatures_display -y

Version 7.x-1.0-alpha29 -> 7.x-1.0-alpha30
-----------------------------------------------

Release notes:

  - Add Services module
  - Add custom Services Documentation, Users Resource, and Petitions
    Statistics - Users modules
  - Add Petitions API feature

Update steps:

  1. Enable new modules.

       drush en services rest_server services_documentation api_resource_users petitions_stats_users petitions_api -y

  2. Configure the Request URL to use the site's URL and define the Starting Year at /admin/config/services/stats/users

Version 7.x-1.0-alpha28 -> 7.x-1.0-alpha29
-----------------------------------------------

Release notes:

  - Update petitions signature reports

Update steps:

  1. Clear Drupal Caches

       drush cc all

Version 7.x-1.0-alpha25 -> 7.x-1.0-alpha28
-----------------------------------------------

Release notes:

  - Add Colorbox and Libraries modules
  - Add Colobox plugin
  - Add a custom module to alert users upon exiting the domain
  - Update various theme elements

Update steps:

  1. Enable new contrib modules.

       drush en colorbox libraries gatekeeper -y

  2. Clear Drupal Caches

       drush cc all

  3. Update Databases

       drush updb

Version 7.x-1.0-alpha24 -> 7.x-1.0-alpha25
-----------------------------------------------

Release notes:

  - Add the Global Redirect module
  - Update the shortenurl service consumption method

Update steps:

  1. Enable new contrib modules.

       drush en globalredirect -y

Version 7.x-1.0-alpha22 -> 7.x-1.0-alpha23
-----------------------------------------------

Release notes:

  - Rename petition install profile to petitions
  - Remove legacy petitions theme
  - Remove duplicate buttom from deleted petitions
  - Remove MongoDB patch that no longer needs to be maintained

Update steps:

  Before you update your code base:

  1. Log in and put your site into maintenace mode


  2. In a few minutes, the legacy "petitions" theme will be removed from the
     code base. Disable it before running the update (we assume you are using
     petitions44 or something other then petitions as your default theme.  If
     that is not true, you will need to enable another theme):

       drush dis petitions


  3. Disable contrib modules that may cause issues when the directory is
     reorganized.

       drush dis entity -y
       drush dis entitycache -y
       drush dis context -y
       drush dis feeds -y


  4. Clear ALL caches.

       drush eval "cache_clear_all('*', NULL, TRUE)"


  5. Change file paths in the database. Update.php and registry rebuild normally
     do this, but sometimes they need a little help.

       drush sqlq 'UPDATE system SET filename = replace (filename, "profiles/petition", "profiles/petitions");'
       drush sqlq 'UPDATE registry SET filename = replace (filename, "profiles/petition", "profiles/petitions");'
       drush sqlq 'UPDATE registry_file SET filename = replace (filename, "profiles/petition", "profiles/petitions");'


  6. Add this line to your settings.php

       $conf['install_profile'] = 'petitions';

     NOTE: If you have anything in your settings.php or anywhere else in you Petitions installation hardcoded to
     profiles/petition (for example the path to a memcache module include file), replace that with 'profile/petitions'
     too.


  Now you are ready to update:

  7. Deploy 7.x-1.0-alpha23 in your environment.


  8. Clear your cache, run update.php, and then run registry rebuild.

       drush cc all
       drush updb
       drush rr


  9. Re-enable modules previously disabled (and the dependencies disabled with them).

       drush en entity entity_token rules logintoboggan_rules profile2 petitions_user_registration rules_admin wh_user_profile wh_petitions wh_contexts wh_zipcodelookup wh_core wh_misc wh_petition_reporting wh_petition_tool wh_profile_migrate wh_response -y

       drush en entitycache context feeds feeds_ui taxonomy_sync -y


  10. Clear your cache, run update.php, and then run registry rebuild.

       drush cc all
       drush updb
       drush rr


  11. Put your site back online.
