-
Notifications
You must be signed in to change notification settings - Fork 1.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: Migration for changing gender type #6117
Conversation
@uds5501 @shreyanshdwivedi @iamareebjamal Since this is a manual migration file, Can you please for any potential issue which can be created by it? |
Codecov Report
@@ Coverage Diff @@
## development #6117 +/- ##
============================================
Coverage 66.37% 66.37%
============================================
Files 286 286
Lines 14359 14359
============================================
Hits 9531 9531
Misses 4828 4828 Continue to review full report at Codecov.
|
migrations/versions/43e8c59339af_.py
Outdated
|
||
|
||
def upgrade(): | ||
op.execute("UPDATE custom_forms SET type = 'select' where field_identifier = 'gender';", execution_options=None) |
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.
make it more specific, only the form type 'attendee' is being refactored.
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.
@CosmicCoder96 @iamareebjamal How do I select the form_type
to attendee
, Will adding an and form = 'attendee'
be suffice or there is some other way?
@mrsaicharan1 @shreyanshdwivedi @uds5501 Please Review |
@iamareebjamal @mrsaicharan1 @CosmicCoder96 @uds5501 Please Review |
Fixes #6106
Short description of what this resolves:
gender field
type fromtext
toselect
Checklist
development
branch.