prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Ensure rotation column == 'False' during migration.
  Null values creates problems during validation.
  
  </issue>
  <code>
  [start of lemur/migrations/versions/131ec6accff5_.py]
  1 """Ensuring we have endpoint updated times and certificate rotation availability.
  2 
  3 Revision ID: 131ec6accff5
  4 Revises: e3691fc396e9
  5 Create Date: 2016-12-07 17:29:42.049986
  6 
  7 """
  8 
  9 # revision identifiers, used by Alembic.
  10 revision = '131ec6accff5'
  11 down_revision = 'e3691fc396e9'
  12 
  13 from alembic import op
  14 import sqlalchemy as sa
  15 
  16 
  17 def upgrade():
  18     # ### commands auto generated by Alembic - please adjust! ###
  19     op.add_column('certificates', sa.Column('rotation', sa.Boolean(), nullable=True))
  20     op.add_column('endpoints', sa.Column('last_updated', sa.DateTime(), server_default=sa.text('now()'), nullable=False))
  21     # ### end Alembic commands ###
  22 
  23 
  24 def downgrade():
  25     # ### commands auto generated by Alembic - please adjust! ###
  26     op.drop_column('endpoints', 'last_updated')
  27     op.drop_column('certificates', 'rotation')
  28     # ### end Alembic commands ###
  29
  [end of lemur/migrations/versions/131ec6accff5_.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/lemur/migrations/versions/131ec6accff5_.py b/lemur/migrations/versions/131ec6accff5_.py
  --- a/lemur/migrations/versions/131ec6accff5_.py
  +++ b/lemur/migrations/versions/131ec6accff5_.py
  @@ -16,7 +16,7 @@
   
   def upgrade():
       # ### commands auto generated by Alembic - please adjust! ###
  -    op.add_column('certificates', sa.Column('rotation', sa.Boolean(), nullable=True))
  +    op.add_column('certificates', sa.Column('rotation', sa.Boolean(), nullable=False, server_default=False))
       op.add_column('endpoints', sa.Column('last_updated', sa.DateTime(), server_default=sa.text('now()'), nullable=False))
       # ### end Alembic commands ###
  
verification_info: {"golden_diff": "diff --git a/lemur/migrations/versions/131ec6accff5_.py b/lemur/migrations/versions/131ec6accff5_.py\n--- a/lemur/migrations/versions/131ec6accff5_.py\n+++ b/lemur/migrations/versions/131ec6accff5_.py\n@@ -16,7 +16,7 @@\n \n def upgrade():\n     # ### commands auto generated by Alembic - please adjust! ###\n-    op.add_column('certificates', sa.Column('rotation', sa.Boolean(), nullable=True))\n+    op.add_column('certificates', sa.Column('rotation', sa.Boolean(), nullable=False, server_default=False))\n     op.add_column('endpoints', sa.Column('last_updated', sa.DateTime(), server_default=sa.text('now()'), nullable=False))\n     # ### end Alembic commands ###\n", "issue": "Ensure rotation column == 'False' during migration.\nNull values creates problems during validation.\n", "before_files": [{"content": "\"\"\"Ensuring we have endpoint updated times and certificate rotation availability.\n\nRevision ID: 131ec6accff5\nRevises: e3691fc396e9\nCreate Date: 2016-12-07 17:29:42.049986\n\n\"\"\"\n\n# revision identifiers, used by Alembic.\nrevision = '131ec6accff5'\ndown_revision = 'e3691fc396e9'\n\nfrom alembic import op\nimport sqlalchemy as sa\n\n\ndef upgrade():\n    # ### commands auto generated by Alembic - please adjust! ###\n    op.add_column('certificates', sa.Column('rotation', sa.Boolean(), nullable=True))\n    op.add_column('endpoints', sa.Column('last_updated', sa.DateTime(), server_default=sa.text('now()'), nullable=False))\n    # ### end Alembic commands ###\n\n\ndef downgrade():\n    # ### commands auto generated by Alembic - please adjust! ###\n    op.drop_column('endpoints', 'last_updated')\n    op.drop_column('certificates', 'rotation')\n    # ### end Alembic commands ###\n", "path": "lemur/migrations/versions/131ec6accff5_.py"}]}