Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove defaults set during schema upgrade/downgrade #7068

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

ezraodio1
Copy link
Contributor

What type of PR is this?

  • Bug Fix

Description

This PR addresses #6836. The fix removes the defaults that are set during schema upgrade/downgrade.

It looks like defaults are set in redash/models/init.py, but it seems like they never actually make it to the database. This could be due to how setting the default parameter works in SQLAlchemy.

How is this tested?

  • Manually

Ran ./manage.py db downgrade fd4fc850d7ea and then ./manage.py db upgrade just like @wlach did in #6836. The upgrade and downgrade seem to work correctly after making the fix.

Related Tickets & Documents

#6836

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

Copy link
Collaborator

@eradman eradman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed that downgrade fd4fc850d7ea / upgrade works as expected

@eradman eradman merged commit 4114227 into getredash:master Jul 18, 2024
11 checks passed
@justinclift
Copy link
Member

@ezraodio1 This is pretty awesome, thanks for getting that problem fixed. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants