Recurly Migration Guide
Upgrading to 2.0.0
Version 2.0.0 corrects the following schemas to match the Recurly API:
| Stream | Field | Change |
|---|---|---|
subscriptions | coupon_redemptions | An array of coupon redemption objects instead of a single object. The fields within each redemption are unchanged. |
accounts | external_accounts[].created_at, external_accounts[].updated_at | Strings now declared with the date-time format. |
account_coupon_redemptions | coupon.redeem_by | String now declared with the date-time format. |
coupons | redeem_by | String now declared with the date-time format. |
unique_coupons_parent | created_at, updated_at | Strings now declared with the date-time format. |
Clearing a stream, or refreshing it with Refresh and remove records, deletes its existing destination data and re-reads only records whose updated_at is on or after the connector's Start Date. If Start Date is empty, the connector reads only the last five years, measured from the time of the re-sync, and older records are permanently removed. Before you clear or refresh-and-remove a stream, snapshot its destination table and set Start Date to a fixed date earlier than your oldest record.
To migrate:
- Upgrade the Recurly source connector to version 2.0.0.
- Refresh the source schema for the affected streams listed above and apply the schema changes to your connections.
- Optional: restore
coupon_redemptionsonsubscriptionsrows synced before 2.0.0. With Destinations V2, rows written using the old object schema had this field nulled, with an error recorded in_airbyte_meta. Refreshing the schema only fixes new rows.- Incremental | Append + Deduped: run Refresh stream on
subscriptionsand choose Refresh and retain records. The deduplicated table keeps the refreshed copy of each subscription. Subscriptions updated before the Start Date aren't re-read, so they keep their existing row withcoupon_redemptionsstill null. - Incremental | Append: the only refresh available retains existing records, so each subscription appears twice: once from the old rows with
coupon_redemptionsnulled, and once from the refresh. Query only the latest_airbyte_generation_id, or follow the warning above and clear the stream instead. - Full Refresh: no action. Every sync rewrites all rows.
- Incremental | Append + Deduped: run Refresh stream on
- The
date-timeformat changes don't require re-syncing history. If your destination can't change an affected column's type and syncs fail after the schema refresh, follow the warning above, then clear only that stream and sync it again. - Update downstream queries or models that treat
subscriptions.coupon_redemptionsas an object to handle an array, and check any models that rely on the affected timestamp columns being strings.
Upgrading to 1.0.0
We recently rolled out an update to the Recurly connector using a newer version of our CDK, as well as introducing several additions to the existing stream schemas. Our aim with these updates is always to enhance the connector's functionality and provide you with a richer set of data to support your integration needs.
While our intention was to make these updates as seamless as possible, we've observed that some users are experiencing issues during the "Discover" step of the sync process. This has led us to re-categorize the recent changes as breaking updates, despite not removing fields or altering property names within the schema.
Once you have migrated to the new version, we highly recommend all users refresh their schemas and reset their data before resuming syncs
Connector upgrade guide
Review the following information to prepare for and execute your upgrade.
Review the changelog
Before updating a connector, review the changelog to understand the changes and their potential impact on your existing connections. Find the changelog for any connector by navigating to the bottom of the documentation for that connector. Major version releases also include a migration guide.
Plan for major updates
Major updates may require you to adjust connection settings or even make changes to your data pipelines. Allocate enough time and resources for this. Use the migration guide to ensure your transition process goes smoothly.
Airbyte provides tooling that guarantees safe connector version bumps and enforces automated version bumps for minor and patch updates. You always need to manually update for major version bumps.
Self-managed plans: pin a specific version if you can't update
If you're unable to upgrade to the new version of a connector, you can pin that connector to a specific version.
-
In the navigation bar:
-
If you're on the Self-Managed Enterprise plan, click Organization settings > Sources/Destinations.
-
If you're on any other plan, click Workspace settings > Sources/Destinations.
-
-
Edit the entry for the connector you want to pin.
-
Set the Default Version to the version you want to use.
Self-managed plans: update the local connector image
If you self-manage Airbyte, you must manually update the connector image in your local registry before proceeding with the migration. Follow the steps below.
-
In the navigation bar:
-
If you're on the Self-Managed Enterprise plan, click Organization settings > Sources/Destinations.
-
If you're on any other plan, click Workspace settings > Sources/Destinations.
-
-
Find the connector you want to update in the list of connectors.
noteAirbyte lists two versions, the current in-use version and the latest version available.
-
Click Change to update your OSS version to the latest available version.
Update the connector version
Update each instance of the connector separately. If you have multiple instances of a connector, updating one doesn't affect the others.
-
In the navigation bar:
-
If you're on the Self-Managed Enterprise plan, click Organization settings > Sources/Destinations.
-
If you're on any other plan, click Workspace settings > Sources/Destinations.
-
-
Select the instance of the connector you wish to upgrade.
-
Select Upgrade.
-
Follow the prompt to confirm you are ready to upgrade to the new version.
Clear data from affected streams
After upgrading a connector with a breaking change, you must refresh affected schemas and clear your data.
-
In the nav bar, click Connections.
-
Find the connection affected by the upgrade.
-
Click the Schema tab.
-
Click Refresh source schema (looks like ). When Airbyte finishes, it shows you any detected schema changes.
-
Click OK.
-
Click Save changes
-
Clear the data for the streams affected by this upgrade.
Once the clear is complete, you can begin syncing your data again as usual.