Skip to content

Configuring database migrations

If you configure cnc to run your database migrations, Coherence will include them as part of the deploy step of your pipelines for each service when it is built.

To configure Coherence, add the following to the x-cnc section for each service. Only supported service types support migration, e.g. backend, not frontend. In Coherence, add this on the cnc.yml tab for your environment, it's not supported in the UI yet.

        type: backend
        migrate: "alembic upgrade head"