-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix: Revert PR for adding required fields of ngo events #6009
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
Conversation
Codecov Report
@@ Coverage Diff @@
## development #6009 +/- ##
===============================================
- Coverage 66.16% 66.15% -0.01%
===============================================
Files 285 285
Lines 14047 14044 -3
===============================================
- Hits 9294 9291 -3
Misses 4753 4753
Continue to review full report at Codecov.
|
3de48d3
migrations/versions/31a6cf1c9374_.py
Outdated
|
|
||
| # revision identifiers, used by Alembic. | ||
| revision = '31a6cf1c9374' | ||
| down_revision = '89a5b836b406' |
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.
Please update the migration file with the latest revision
|
@iamareebjamal Please review. |
|
@iamareebjamal Instead of that, I pulled the latest changes of development into this branch and merged the migrations heads and checked locally, everything works fine. |
|
Please keep a single migration |
|
@mrsaicharan1 @uds5501 @shreyanshdwivedi @iamareebjamal Please review. |
migrations/versions/14e31b3a860b_.py
Outdated
| existing_type=sa.BOOLEAN(), | ||
| nullable=True, | ||
| autoincrement=False, | ||
| existing_server_default=sa.text('false')) |
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.
This should not be here
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.
@iamareebjamal This is a auto-generated migration.
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.
Still
migrations/versions/14e31b3a860b_.py
Outdated
| def upgrade(): | ||
| # ### commands auto generated by Alembic - please adjust! ### | ||
| op.drop_column('events', 'is_ngo') | ||
| op.alter_column('events_version', 'show_remaining_tickets', |
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.
This seems to be occurring due to some issue with migration commands. Please remove this as we are not making any changes to the remaining tickets column in events_version
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.
@mrsaicharan1 is correct. This automatic script just saw that your events have a null show remaining tickets column.
That's why this line is being generated. so removing it should be fine.
migrations/versions/14e31b3a860b_.py
Outdated
| def downgrade(): | ||
| # ### commands auto generated by Alembic - please adjust! ### | ||
| op.add_column('events_version', sa.Column('is_ngo', sa.BOOLEAN(), autoincrement=False, nullable=True)) | ||
| op.alter_column('events_version', 'show_remaining_tickets', |
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.
Same here. Remove this and this is good to go.
Also, just a pointer, whenever migration files are generated, there is a line which tells you that
# ### commands auto generated by Alembic - please adjust! ###
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.
@prateekj117 Same goes with this block
migrations/versions/14e31b3a860b_.py
Outdated
| def upgrade(): | ||
| # ### commands auto generated by Alembic - please adjust! ### | ||
| op.drop_column('events', 'is_ngo') | ||
| op.alter_column('events_version', 'show_remaining_tickets', |
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.
@mrsaicharan1 is correct. This automatic script just saw that your events have a null show remaining tickets column.
That's why this line is being generated. so removing it should be fine.
migrations/versions/14e31b3a860b_.py
Outdated
| def downgrade(): | ||
| # ### commands auto generated by Alembic - please adjust! ### | ||
| op.add_column('events_version', sa.Column('is_ngo', sa.BOOLEAN(), autoincrement=False, nullable=True)) | ||
| op.alter_column('events_version', 'show_remaining_tickets', |
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.
@prateekj117 Same goes with this block
|
@mrsaicharan1 @uds5501 @iamareebjamal Made the changes. Please review. |
Fixes #5991
Checklist
developmentbranch.