fossasia/open-event-orga-server

View on GitHub
migrations/versions/e95a9cd83678_.py

Summary

Maintainability
A
2 hrs
Test Coverage

Function upgrade has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

def upgrade():
    ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint(u'association_ticket_tag_id_fkey', 'association', type_='foreignkey')
    op.drop_constraint(u'association_ticket_id_fkey', 'association', type_='foreignkey')
    op.create_foreign_key(None, 'association', 'ticket_tag', ['ticket_tag_id'], ['id'], ondelete='CASCADE')
Severity: Minor
Found in migrations/versions/e95a9cd83678_.py - About 1 hr to fix

Function downgrade has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

def downgrade():
    ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint(None, 'users_events_roles', type_='foreignkey')
    op.drop_constraint(None, 'users_events_roles', type_='foreignkey')
    op.create_foreign_key(u'users_events_roles_user_id_fkey', 'users_events_roles', 'user', ['user_id'], ['id'])
Severity: Minor
Found in migrations/versions/e95a9cd83678_.py - About 1 hr to fix

There are no issues that match your filters.

Category
Status