You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "dosubot[bot] (via GitHub)" <gi...@apache.org> on 2026/05/02 03:20:28 UTC
Re: [D] Not able to downgrade from 4.1.2 to 4.0.0 [superset]
GitHub user dosubot[bot] edited a comment on the discussion: Not able to downgrade from 4.1.2 to 4.0.0
<!-- Answer -->
To downgrade Superset from version 4.1.2 to 4.0.0, you need to follow these steps:
1. **Find the Revision ID**: You can find the list of migration scripts and their corresponding revision IDs in the `superset/migrations/versions/` directory. Look for the migration script that corresponds to the version you want to downgrade to.
2. **Downgrade Command**: Use the command `superset db downgrade <revision_id>` to apply the downgrade. This will execute the migration's `down` method, reverting the database schema to the previous state.
3. **Database Initialization**: After downgrading, you can run `superset db init` to initialize the database.
Make sure to back up your data before performing the downgrade to prevent any data loss. If you need more detailed steps on downgrading the database schema, you can refer to the process outlined in the Superset repository <sup>[[1]](https://github.com/apache/superset/blob/master/superset/migrations/shared/catalogs.py)</sup><sup>[[2]](https://github.com/apache/superset/blob/master/docs/docs/contributing/development.mdx)</sup><sup>[[3]](https://github.com/apache/superset/blob/master/superset/migrations/versions/2022-03-16_21-07_8b841273bec3_sql_lab_models_database_constraint_updates.py)</sup>.
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Docs are dead. Just use [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-feedback&utm_term=apache%2Fsuperset&message_id=81ebf9b3-8b99-4226-87c4-d8fa144395e1) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-share-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/33514#discussioncomment-13194186
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org