<@U04S8PLJWMT> what can i do if i upgrade airbyte ...
# ask-ai
j
@kapa.ai what can i do if i upgrade airbyte using abctl, and i restore all postgres db to a version prior to the upgrade? can i run the db migration manually?
k
If you upgrade Airbyte using
abctl
and then restore your Postgres database to a version prior to the upgrade, you may encounter issues because the application and database schema versions are now out of sync. The knowledge sources do not provide a documented, supported way to manually trigger only the database migrations after such a rollback. The standard upgrade process with
abctl
is to run:
Copy code
abctl local install
This command handles both the application upgrade and the necessary database migrations automatically. There is no mention in the documentation of a separate command to run only the database migrations independently of the full install/upgrade process. If you restore the database to an older state, running
abctl local install
again should attempt to bring the database schema up to date with the application version, as part of its normal operation. However, this is not explicitly documented as a supported recovery path after a manual DB restore. If you are using an external database, the migration process is still tied to the
abctl local install
workflow, and there is no mention of a manual migration-only command in the official docs or community discussions. If you encounter migration failures, you may need to ensure that your Airbyte version and database state are compatible, and in some cases, you might need to restore both the application and database to a matching version before attempting the upgrade again. In summary: - There is no documented way to run only the database migrations manually after restoring the DB to a previous version. - The recommended approach is to use
abctl local install
, which will attempt to migrate the database as part of the upgrade process. - If you run into migration errors, you may need to ensure both your Airbyte application and database are at compatible versions before retrying the upgrade. If you need more granular control or run into migration issues, you may need to seek further support or consider restoring both the application and database to a consistent state before proceeding with upgrades [Upgrading with abctl](https://docs.airbyte.com/platform/1.6/operator-guides/upgrading-airbyte#upgrading-with-abctl).