# Repair

Use this page to upgrade and rebuild data from a previous version of Sugar for the current version of the program. You also use this option to convert a Sugar installation to offline mode.

The upgrade options include:

- Opportunities: Controls how currency fields within Opportunities are upgraded. This is needed to support an internationalized currency capability, which stores the currency type separately from the amount.
- Upgrade Custom Labels: Upgrades the format of the custom field labels in every language file.
- Apply Daylight Savings Time Fix: This mandatory step updates the time handling functionality.
- Repair Database: Repairs My SQL database based on values defined in vardefs.
- Repair Entry Points: Run this script if you receive a 'Not A Valid Entry Point' error.
- Clear Chart Data Cache: Removes cached data files used by charts.
- Rebuild .htaccess file: Rebuilds .htaccess to limit access to certain files directly.
- Rebuild Audit: Rebuilds the audit table.
- Rebuild Config File: Rebuilds config.php by updating version and adding defaults when not explicitly declared.
- Rebuild Extensions: Rebuilds extensions including extended vardefs, language packs, menus, and administration
- Rebuild Relationships: Rebuilds relationship metadata and drops the cache file.
- Rebuild Schedulers: Rebuild your out-of-the-box Scheduler Jobs.
- Rebuild Dashlets: Rebuilds the Dashlets cache file.
- Rebuild Javascript Languages: Rebuilds Javascript versions of language files.
- Repair Roles: Repairs roles by adding all new modules that support access control as well as any new access controls to existing modules.
- Repair Indexes: Validates and, optionally, repairs database indexes against definitions in vardef files.