Refreshing Test Data Guidelines
Inform PCR before copying data from the Production system to the Test system, or restoring data from a backup. If the version of the data in the backup, or from Production, does not match the patch installed on the system, the application will not function properly.
If possible, coordinate the copying of Production Data to the Test system with new Patch Upgrades. This should reduce the possibility of any unforeseen issues since PCR would be installing the upgrade right after the data is copied. This allows PCR to verify everything is in order after the data transfer.
Backup the Test database (optional) - This is only necessary if you suspect you will need to restore any data from the Test system that is not in the Production data.
Export the Production database, or prepare a backup copy of the Production database that you can import into the Test database.
All PCR-360 installations require three schemas/databases; pcr360_prod, pcr360_prod_metadata, and pcr360_prod_archive. The names may vary by installation, however, there should be a primary schema, metadata schema, and archive schema.
All tables must be exported, including empty tables. The application may not run properly if any schemas, or tables are missing.
Disable the cron for the Test system by commenting out the entry in the crontab. (This is typically found in the root crontab, but could be in the Apache crontab for some customers).
Import the data into each of the schemas on the Test Database.
Note: Always verify that you are importing the data into the test schemas, you may not be able to fix the production data if any data changes occurred since the data was exported.
Save the output of the import process to a log file. You should review the log after the import has completed and verify no issues occurred during the import process.
After the data has imported, you will need to rebuild the views.
Rebuild the MT-Views (from the browser)
<application url>/update/create/mt-views
The mt-views will be automatically updated
Rebuild the standard Views (from the browser)
<application url>/update/create/views
The views will be automatically updated
Restore any triggers, custom views, etc. on the Test system.
Uncomment the Test system entry in the crontab to enable the cron.
Log into the application to verify everything works and you're done!