You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the create_db command is run on an existing Redash database of an older version it is stamped as the latest version but no migrations end up being run. Any attempt to run upgrades afterwards simply do nothing as the system thinks it is up-to date.
To resolve you need to manually stamp the database at the previous versions migrations and to then run the upgrade process again.
Ran the migrations (db upgrade) if the database does exist
Steps to Reproduce
Install Redash V3
Launch Redash V4 docker image with command: run --rm server create_db
Attempt to access Redash running V4
Attempt to run run --rm server manage db upgrade: this simply does nothing as the database appears to be up-to-date
All access to the Redash fails as it still has the database for V3 not V4.
Resolution requires manually stamping the database at the latest revision for V3 and then running the db upgrade process again - this time it will correctly update the database and everything will work again.
Technical details:
How did you install Redash: Docker
The text was updated successfully, but these errors were encountered:
+1
It would be more easy to maintain Redash if instead two commands: server create_db and manage db upgrade, there will be a single command which will create DB if there is no tables and upgrade schema if previous version is found.
Issue Summary
If the create_db command is run on an existing Redash database of an older version it is stamped as the latest version but no migrations end up being run. Any attempt to run upgrades afterwards simply do nothing as the system thinks it is up-to date.
To resolve you need to manually stamp the database at the previous versions migrations and to then run the upgrade process again.
This function stamps regardless of pre-existing database version: https://github.com/getredash/redash/blob/v4.0.1/redash/cli/database.py#L13
It would be great if either this process:
Steps to Reproduce
run --rm server create_db
run --rm server manage db upgrade
: this simply does nothing as the database appears to be up-to-dateAll access to the Redash fails as it still has the database for V3 not V4.
Resolution requires manually stamping the database at the latest revision for V3 and then running the db upgrade process again - this time it will correctly update the database and everything will work again.
Technical details:
The text was updated successfully, but these errors were encountered: