GitHub user dosubot[bot] added a comment to the discussion: Superset db upgrade 
is not triggering upgrade

<!-- Answer -->
The Superset upgrade process has a few key steps. First, update your Superset 
application (for example, by deploying a new image or upgrading the package). 
Next, run superset db upgrade to apply all database migrations—this updates the 
metadata schema and handles any necessary data transformations. After that, run 
superset init to complete initialization tasks like setting up permissions and 
post-migration steps. Finally, restart the application to ensure all features 
initialize properly. 

It's best practice to back up your metadata database before upgrading, test the 
upgrade in a staging environment, and perform production upgrades during 
off-peak hours. The exact steps may vary depending on your deployment method 
(Docker, pip, Helm, etc.), but the core process is always: update the app, run 
superset db upgrade, run superset init, and restart Superset. For major 
upgrades, check the release notes and changelogs for breaking changes or 
required config updates ([official 
docs](https://github.com/apache/superset/blob/master/docs/docs/installation/upgrading-superset.mdx),
 [example issue](https://github.com/apache/superset/issues/27920)).


<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*

---
<sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/cf78e6db-c008-4a47-8ba9-def22747a300?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/cf78e6db-c008-4a47-8ba9-def22747a300?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/cf78e6db-c008-4a47-8ba9-def22747a300?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/cf78e6db-c008-4a47-8ba9-def22747a300?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/cf78e6db-c008-4a47-8ba9-def22747a300?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/cf78e6db-c008-4a47-8ba9-def22747a300?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/cf78e6db-c008-4a47-8ba9-def22747a300?feedback_type=other)</sup>

[![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=The%20Superset%20upgrade%20process%20has%20a%20few%20key%20steps.%20First%2C%20update%20your%20Superset%20application%20%28for%20example%2C%20by%20deploying%20a%20new%20image%20or%20upgrading%20the%20package%29.%20Next%2C%20run%20superset%20db%20upgrade%20to%20apply%20all%20database%20migrations%E2%80%94this%20updates%20the%20metadata%20schema%20and%20handles%20any%20necessary%20data%20transformations.%20After%20that%2C%20run%20superset%20init%20to%20complete%20initialization%20tasks%20like%20setting%20up%20permissions%20and%20post-migration%20steps.%20Finally%2C%20restart%20the%20application%20to%20ensure%20all%20features%20initialize%20properly.%20%0A%0AIt%27s%20best%20practice%20to%20back%20up%20your%20metadata%20database%20before%20upgrading%2C%20
 
test%20the%20upgrade%20in%20a%20staging%20environment%2C%20and%20perform%20production%20upgrades%20during%20off-peak%20hours.%20The%20exact%20steps%20may%20vary%20depending%20on%20your%20deployment%20method%20%28Docker%2C%20pip%2C%20Helm%2C%20etc.%29%2C%20but%20the%20core%20process%20is%20always%3A%20update%20the%20app%2C%20run%20superset%20db%20upgrade%2C%20run%20superset%20init%2C%20and%20restart%20Superset.%20For%20major%20upgrades%2C%20check%20the%20release%20notes%20and%20changelogs%20for%20breaking%20changes%20or%20required%20config%20updates%C2%A0%28%5Bofficial%20docs%5D%28https%3A//github.com/apache/superset/blob/master/docs/docs/installation/upgrading-superset.mdx%29%2C%20%5Bexample%20issue%5D%28https%3A//github.com/apache/superset/issues/27920%29%29.)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent
 
/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/37261)

GitHub link: 
https://github.com/apache/superset/discussions/37261#discussioncomment-15545049

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to