UPGRADING TO DRUPAL 10/11 COMPATIBLE VERSION
=============================================

This version of the Sign for Acknowledgement module has been updated to be
compatible with Drupal 10 and Drupal 11.

PREREQUISITES
-------------
- Drupal 10.0 or higher, OR Drupal 11.0 or higher
- PHP 8.1 or higher
- All module dependencies must also be Drupal 10/11 compatible

MAJOR CHANGES
-------------
1. Database API Updates
   - Replaced deprecated fetchCol() method
   - Added SQL injection protection with placeholders
   - Improved query performance

2. Code Standards
   - Updated to current Drupal coding standards
   - Improved security with parameterized queries
   - Normalized line endings

UPGRADE STEPS
-------------
1. BACKUP YOUR DATABASE
   Make a complete backup of your database before proceeding!

2. Enable Maintenance Mode
   drush state:set system.maintenance_mode 1

3. Update Module Files
   - Remove the old module directory
   - Extract new module files to modules/contrib/sign_for_acknowledgement/

4. Run Database Updates
   drush updatedb
   OR visit /update.php in your browser

5. Clear Caches
   drush cache:rebuild

6. Disable Maintenance Mode
   drush state:set system.maintenance_mode 0

7. Test Thoroughly
   - Create a test node with acknowledgement fields
   - Sign acknowledgements as different users
   - Check views and reports
   - Verify email notifications work

TROUBLESHOOTING
---------------
If you encounter errors after upgrading:

1. Clear all caches again:
   drush cr

2. Check PHP version:
   php -v
   (Must be 8.1 or higher)

3. Review Drupal logs:
   drush watchdog:show

4. Verify permissions:
   Check that users still have proper permissions for the module

ROLLBACK
--------
If you need to rollback:
1. Restore your database backup
2. Restore the old module files
3. Clear caches

SUPPORT
-------
For issues or questions:
- Check the module's issue queue on Drupal.org
- Review the CHANGELOG.md for detailed changes
- Consult the README.md for configuration help

DATABASE SCHEMA
---------------
No database schema changes were made in this update.
All existing acknowledgement data will be preserved.
