You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Any completed local pack can be rolled back. Rollback will restore the versions of all the records in this local pack as they were before the start of the update collection, in other words, before starting works on this local pack. Deleted records will be restored, and created records will be deleted.

Example

  • Before work on this local pack starts, the record had version X.
  • As a result of building this local pack, the records gets version Y.
  • When we rollback the pack, the record will have version X again.
  • Make sure that you selected the same local pack which you are going to rollback in the Admin Preferences.
  • Rollback of any local pack should not be invoked without an emergency need.
  • Use rollback cautiously. Some changes caused by the rollback may lead to data loss.

Rollback a local pack


To rollback a local pack, please complete the steps below:

  1. Navigate to Configuration → Local Pack.
  2. Open the local pack you need to rollback.
  3. Click Rollback Preview to preview the list of records that are going to be restored.
  4. Review the contents of the local pack, fix possible collisions if there are any.
  5. Click Rollback to restore records to the previous version.

Do not rollback the default local pack without an absolute necessity; otherwise, your SimpleOne instance configuration may be damaged.

Here is the expected result of the process:

Update

Rollback result

A new tableThe table is dropped from the database, deleting any data from it.
A new fieldThe field is dropped from the database, deleting any data from it.
A deleted fieldThe field is restored to the database, but the original data is lost.
A record is insertedThe record is deleted.
A record is deletedThe record is restored with its original data.

Collisions


Collision case 1

When rolling back a local pack, a record is in the Collision state and the error is thrown: "The current version for this target entry is in a different local package.
https://{your-instance.ru}/record/sys_vcs_record/123455521418546721".

Collision solving:

  1. Move the current record to the local pack which you need to rollback.
  2. Click Rollback Preview.
  3. Check for collisions.
  4. Click Rollback to complete the procedure.

Collision case 2

When rolling back a local pack, a record is in the Collision state and the error is thrown: "Current record does not exist!".

Solving:

  • Continue the rollback. The collision record will be skipped.

Collision case 3

When rolling back a local pack, a record is in the Collision state and the error is thrown: "Previous version for current is not found".

Solving:

  • Continue the rollback. The collision record will be skipped.

Collision case 4

When rolling back a local pack, a record is in the Warning state and the error is thrown: "undefined column SQLERROR 42703".

Solving:

  • Continue the rollback. Columns inserted during local pack building will be deleted.

Collision case 5

When rolling back, an existing table will be deleted, but contains one or more records. The version records will be in the Skipped state and the error is thrown: "Table is not empty".

Solving:

  1. Open the list of records of the table to be deleted.
  2. Delete all records manually.
  3. Click Rollback Preview.
  4. Check for collisions.
  5. Click Rollback to complete the procedure.

You can find other examples of possible collisions in the Collisions processing article.


.


  • Configuration Management
  • Exporting local pack
  • Importing local pack


  • No labels