getredash / redash

Make Your Company Data Driven. Connect to any data source, easily visualize, dashboard and share your data.
http://redash.io/
BSD 2-Clause "Simplified" License
26.46k stars 4.38k forks source link

Automatic database upgrades #7166

Open zachliu opened 2 months ago

zachliu commented 2 months ago

What type of PR is this?

Description

Automatically upgrade the database upon services start-up. So that we don't need to do it manually using cli tools on the server. https://github.com/getredash/redash/pull/7167 has to go in first because upgrading db takes time. The rest of the program has to wait for it to finish.

I started the discussion https://github.com/getredash/redash/discussions/7005 on automated db migration mechanisms.

Further discussing: https://github.com/getredash/redash/pull/7161#issuecomment-2352747467

How is this tested?

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings (if there are UI changes)