-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
fix: Error when downgrading add_catalog_perm_to_tables migration #29906
fix: Error when downgrading add_catalog_perm_to_tables migration #29906
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
@@ -48,6 +48,6 @@ def upgrade(): | |||
|
|||
|
|||
def downgrade(): | |||
downgrade_catalog_perms(engines={"postgresql"}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, good catch!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #29906 +/- ##
===========================================
+ Coverage 60.48% 83.72% +23.23%
===========================================
Files 1931 527 -1404
Lines 76236 38043 -38193
Branches 8568 0 -8568
===========================================
- Hits 46114 31851 -14263
+ Misses 28017 6192 -21825
+ Partials 2105 0 -2105
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
double-stamping it, thank you @michael-s-molina for tackling this!
@supersetbot label 4.1 |
) (cherry picked from commit fb7f508)
SUMMARY
Fixes a error when downgrading revision
58d051681a3b
. The previous code was invokingdowngrade_catalog_perms
after dropping thecatalog_perm
column which is used by that function, generating an error:This PR also rewrites revision
5f57af97bc3f
to remove duplicated code.TESTING INSTRUCTIONS
Check both upgrade and downgrade operations for each migration.
ADDITIONAL INFORMATION