Skip to main content

Downgrade Origin by Corvus Server

In most cases you can downgrade Origin by Corvus Server using the same steps as upgrading origin server. Server binaries can be found in the Origin by Corvus server version archive documentation.

Prepare for downgrade​

Before downgrading the Origin by Corvus server, we strongly recommend the following preparation steps.

  1. Back up your data: Ensure you have a full backup of your database and Origin by Corvus application files. This is crucial in case you need to revert any changes.
  1. Back up your database using your organization’s standard procedures for backing up the database.
  2. Back up your application by copying into an archive folder (e.g. origin-back-YYYY-MM-DD-HH-mm). Ensure to copy your Origin by Corvus configuration files and any other necessary application files.
  1. Carefully review the Origin by Corvus changelog for the version you are downgrading to in order to understand any potential issues or incompatibilities.
  2. Verify the current schema version of your database using the origin db version --all command. Also, if you aren't sure about the target schema, you can verify the target schema version (i.e., applied migrations) by checking the public GitHub repository (Select the tag for desired version).

Perform the downgrade​

  1. Stop the Origin by Corvus service to ensure that no data is being written to the database during the downgrade process.
  2. If the database schema has changed between versions, you must downgrade the schema. Use the newer origin binary to perform the downgrade using the origin db downgrade command. For example: origin db downgrade 128,127,126
  1. There may be changes in configuration settings between versions. Revert any necessary configuration changes in the config.json file to match the downgraded version's expectations and support.

After the downgrade​

Replace the current Origin by Corvus application binary with the version you want to downgrade to. Make sure to use the binary of the target version. The newer Origin by Corvus binary contains the downgrade SQL for the migrations to be rolled back. The newer binary version is used to perform the downgrade; then you start using the application binary of the version you want to downgrade to.

  1. Restart the Origin by Corvus Server after completing the downgrade.
  2. Check the logs and test the application to ensure that everything is functioning correctly.
  3. Inform your users about the downgrade and any potential changes they might experience.