Does anyone know if it is still possible to trigge...
# replication-troubleshooting
m
Does anyone know if it is still possible to trigger database migrations via the Airbyte config API?
k
New message text here
h
Yes, it is still possible to trigger database migrations via the Airbyte configuration API. Airbyte provides several options for managing database migrations and schema changes: 1. Schema change propagation: Airbyte offers automated schema change detection and propagation. The platform's background DiscoverSchema process compares old and new schemas and automatically propagates modifications. 2. Airbyte API: You can use the Airbyte API to manage resource configurations, including database migrations. This provides programmatic control over migration workflows. 3. Terraform Provider: Airbyte has released an official Terraform Provider, which is recommended for managing Airbyte configurations as code. This can be used to handle database migrations in a more structured and version-controlled manner. 4. Configuration as Code (CaC): Airbyte supports Configuration as Code in YAML format, allowing you to manage resource configurations, including database migrations, through version-controlled files. While these methods provide ways to manage database migrations, it's important to note that Airbyte primarily focuses on data replication and synchronization. For complex database schema changes or migrations, you might need to combine Airbyte's capabilities with other database management tools or scripts.
m
Hey Henry, thanks for the reply. Specifically talking about the AirbyteConfigDB database migrations. Seem to have gotten into a pathological state where the wrong migrations have been applied to the internal config database. The readme in Airbyte DB folder lists an
/api/migration
route but I can't seem to access the
/api/migration
endpoint or indeed any of the configuration API endpoints. This endpoint is also not listed in the docs for the configuration API
Solved for now by backing up db and letting migrations rerun after dropping public schema
🔥 1