prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Error in migrations
  **Describe the bug**
  Due to recent merging of PRs https://github.com/fossasia/open-event-server/pull/6744/ https://github.com/fossasia/open-event-server/pull/6748
  
  The PR https://github.com/fossasia/open-event-server/pull/6744 has an invalid migration to remove the 'secret' column from the db which was unrelated to PR. Hence now we have two migration for  the same column `secret` from `settings` which
   drops column on upgrade and creates  on downgrade
  
  
  **Additional context**
  @iamareebjamal - Please chck
  
  
  </issue>
  <code>
  [start of migrations/versions/rev-2020-01-17-18:09:31-6ebafb385765_.py]
  1 """empty message
  2 
  3 Revision ID: 6ebafb385765
  4 Revises: 30a490ad1609
  5 Create Date: 2020-01-17 18:09:31.897988
  6 
  7 """
  8 
  9 from alembic import op
  10 import sqlalchemy as sa
  11 import sqlalchemy_utils
  12 
  13 
  14 # revision identifiers, used by Alembic.
  15 revision = '6ebafb385765'
  16 down_revision = '30a490ad1609'
  17 
  18 
  19 def upgrade():
  20     # ### commands auto generated by Alembic - please adjust! ###
  21     op.drop_column('settings', 'secret')
  22     op.add_column('ticket_holders', sa.Column('age_group', sa.String(), nullable=True))
  23     # ### end Alembic commands ###
  24 
  25 
  26 def downgrade():
  27     # ### commands auto generated by Alembic - please adjust! ###
  28     op.drop_column('ticket_holders', 'age_group')
  29     op.add_column('settings', sa.Column('secret', sa.VARCHAR(), autoincrement=False, nullable=True))
  30     # ### end Alembic commands ###
  31
  [end of migrations/versions/rev-2020-01-17-18:09:31-6ebafb385765_.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/migrations/versions/rev-2020-01-17-18:09:31-6ebafb385765_.py b/migrations/versions/rev-2020-01-17-18:09:31-6ebafb385765_.py
  --- a/migrations/versions/rev-2020-01-17-18:09:31-6ebafb385765_.py
  +++ b/migrations/versions/rev-2020-01-17-18:09:31-6ebafb385765_.py
  @@ -18,7 +18,6 @@
   
   def upgrade():
       # ### commands auto generated by Alembic - please adjust! ###
  -    op.drop_column('settings', 'secret')
       op.add_column('ticket_holders', sa.Column('age_group', sa.String(), nullable=True))
       # ### end Alembic commands ###
   
  @@ -26,5 +25,4 @@
   def downgrade():
       # ### commands auto generated by Alembic - please adjust! ###
       op.drop_column('ticket_holders', 'age_group')
  -    op.add_column('settings', sa.Column('secret', sa.VARCHAR(), autoincrement=False, nullable=True))
       # ### end Alembic commands ###
  
verification_info: {"golden_diff": "diff --git a/migrations/versions/rev-2020-01-17-18:09:31-6ebafb385765_.py b/migrations/versions/rev-2020-01-17-18:09:31-6ebafb385765_.py\n--- a/migrations/versions/rev-2020-01-17-18:09:31-6ebafb385765_.py\n+++ b/migrations/versions/rev-2020-01-17-18:09:31-6ebafb385765_.py\n@@ -18,7 +18,6 @@\n \n def upgrade():\n     # ### commands auto generated by Alembic - please adjust! ###\n-    op.drop_column('settings', 'secret')\n     op.add_column('ticket_holders', sa.Column('age_group', sa.String(), nullable=True))\n     # ### end Alembic commands ###\n \n@@ -26,5 +25,4 @@\n def downgrade():\n     # ### commands auto generated by Alembic - please adjust! ###\n     op.drop_column('ticket_holders', 'age_group')\n-    op.add_column('settings', sa.Column('secret', sa.VARCHAR(), autoincrement=False, nullable=True))\n     # ### end Alembic commands ###\n", "issue": "Error in migrations\n**Describe the bug**\r\nDue to recent merging of PRs https://github.com/fossasia/open-event-server/pull/6744/ https://github.com/fossasia/open-event-server/pull/6748\r\n\r\nThe PR https://github.com/fossasia/open-event-server/pull/6744 has an invalid migration to remove the 'secret' column from the db which was unrelated to PR. Hence now we have two migration for  the same column `secret` from `settings` which\r\n drops column on upgrade and creates  on downgrade\r\n\r\n\r\n**Additional context**\r\n@iamareebjamal - Please chck\r\n\n", "before_files": [{"content": "\"\"\"empty message\n\nRevision ID: 6ebafb385765\nRevises: 30a490ad1609\nCreate Date: 2020-01-17 18:09:31.897988\n\n\"\"\"\n\nfrom alembic import op\nimport sqlalchemy as sa\nimport sqlalchemy_utils\n\n\n# revision identifiers, used by Alembic.\nrevision = '6ebafb385765'\ndown_revision = '30a490ad1609'\n\n\ndef upgrade():\n    # ### commands auto generated by Alembic - please adjust! ###\n    op.drop_column('settings', 'secret')\n    op.add_column('ticket_holders', sa.Column('age_group', sa.String(), nullable=True))\n    # ### end Alembic commands ###\n\n\ndef downgrade():\n    # ### commands auto generated by Alembic - please adjust! ###\n    op.drop_column('ticket_holders', 'age_group')\n    op.add_column('settings', sa.Column('secret', sa.VARCHAR(), autoincrement=False, nullable=True))\n    # ### end Alembic commands ###\n", "path": "migrations/versions/rev-2020-01-17-18:09:31-6ebafb385765_.py"}]}