ch-amal0 commented on issue #63954:
URL: https://github.com/apache/airflow/issues/63954#issuecomment-4099169351

   > [@ch-amal0](https://github.com/ch-amal0) How do you downgrade to 3.1.7? My 
Airflow Docker container could not start when I went back to 3.1.7. Airflow 
error log asked me to run db migrate, but that did not work, looks like 3.1.8 
changes some data structure in the backend db, and it is not backward 
compatible with previous version.
   
   You'll have to run the migration yourself inside the container shell.
   First run :
   ```bash
   docker compose  run --rm \
     --entrypoint "" \
     airflow-init \
     airflow db shell
   ```
   and then
   ```bash
   UPDATE alembic_version SET version_num = 'cc92b33c6709';
   \q
   ```bash
   Finally, restart your containers
   ```
   docker compose up -d
   ```
   
   I suppose you could just run the sql command on your database using pgadmin 
or another db manager


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to