romanzdk opened a new issue, #65000: URL: https://github.com/apache/airflow/issues/65000
### Under which category would you file this issue? Airflow Core ### Apache Airflow version 3.2.0 ### What happened and how to reproduce it? We updated Airflow from 3.1.8 to 3.2.0. Webservers started to stuck and it was totally unusable. So we reverted back to 3.1.8 via `airflow db downgrade --to-version 3.1.8` which was successfull and everything seemed fine. However we started seeing an error in scheduler like: ``` ... sqlalchemy.exc.IntegrityError: (psycopg2.errors.NotNullViolation) null value in column "id" of relation "callback_request" violates not-null constraint ``` And after some investigation we found out that there was [this migration](https://github.com/apache/airflow/blob/main/airflow-core/src/airflow/migrations/versions/0093_3_2_0_restructure_callback_table.py#L87) that changed the type of the ID column of the `callback_request` table, however, downgrade did not return the autoincrement back. The field is now integer (correct) but sequence for autoincrement is totally missing and then we see these errors. It seems downgrade migration should look differently. ### What you think should happen instead? Autoincrement for the ID column of the callback_request table returned correctly. ### Operating System _No response_ ### Deployment None ### Apache Airflow Provider(s) _No response_ ### Versions of Apache Airflow Providers _No response_ ### Official Helm Chart version Not Applicable ### Kubernetes Version _No response_ ### Helm Chart configuration _No response_ ### Docker Image customizations _No response_ ### Anything else? _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- 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]
