prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Running migrations for Travis builds
  We run migrations to ensure no migrations are missing, and they work on fresh installs.
  
  
  </issue>
  <code>
  [start of ecommerce/extensions/order/migrations/0003_auto_20150224_1520.py]
  1 # -*- coding: utf-8 -*-
  2 from __future__ import unicode_literals
  3 
  4 from django.db import models, migrations
  5 
  6 
  7 def create_shipping_event(apps, schema_editor):
  8     """
  9 
  10     Create a single new shipping event type that can be applied to an order. This will allow us to initiate order
  11     shipment.
  12 
  13     """
  14     # Create all our Product Types.
  15     ShippingEventType = apps.get_model("order", "ShippingEventType")
  16     shipped_event = ShippingEventType(code="shipped", name="Shipped")
  17     shipped_event.save()
  18 
  19 
  20 class Migration(migrations.Migration):
  21 
  22     dependencies = [
  23         ('order', '0002_auto_20141007_2032'),
  24     ]
  25 
  26     operations = [
  27         migrations.RunPython(create_shipping_event),
  28     ]
  29
  [end of ecommerce/extensions/order/migrations/0003_auto_20150224_1520.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/ecommerce/extensions/order/migrations/0003_auto_20150224_1520.py b/ecommerce/extensions/order/migrations/0003_auto_20150224_1520.py
  --- a/ecommerce/extensions/order/migrations/0003_auto_20150224_1520.py
  +++ b/ecommerce/extensions/order/migrations/0003_auto_20150224_1520.py
  @@ -13,8 +13,7 @@
       """
       # Create all our Product Types.
       ShippingEventType = apps.get_model("order", "ShippingEventType")
  -    shipped_event = ShippingEventType(code="shipped", name="Shipped")
  -    shipped_event.save()
  +    ShippingEventType.objects.create(code="shipped", name="Shipped")
   
   
   class Migration(migrations.Migration):
  
verification_info: {"golden_diff": "diff --git a/ecommerce/extensions/order/migrations/0003_auto_20150224_1520.py b/ecommerce/extensions/order/migrations/0003_auto_20150224_1520.py\n--- a/ecommerce/extensions/order/migrations/0003_auto_20150224_1520.py\n+++ b/ecommerce/extensions/order/migrations/0003_auto_20150224_1520.py\n@@ -13,8 +13,7 @@\n     \"\"\"\n     # Create all our Product Types.\n     ShippingEventType = apps.get_model(\"order\", \"ShippingEventType\")\n-    shipped_event = ShippingEventType(code=\"shipped\", name=\"Shipped\")\n-    shipped_event.save()\n+    ShippingEventType.objects.create(code=\"shipped\", name=\"Shipped\")\n \n \n class Migration(migrations.Migration):\n", "issue": "Running migrations for Travis builds\nWe run migrations to ensure no migrations are missing, and they work on fresh installs.\n\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nfrom django.db import models, migrations\n\n\ndef create_shipping_event(apps, schema_editor):\n    \"\"\"\n\n    Create a single new shipping event type that can be applied to an order. This will allow us to initiate order\n    shipment.\n\n    \"\"\"\n    # Create all our Product Types.\n    ShippingEventType = apps.get_model(\"order\", \"ShippingEventType\")\n    shipped_event = ShippingEventType(code=\"shipped\", name=\"Shipped\")\n    shipped_event.save()\n\n\nclass Migration(migrations.Migration):\n\n    dependencies = [\n        ('order', '0002_auto_20141007_2032'),\n    ]\n\n    operations = [\n        migrations.RunPython(create_shipping_event),\n    ]\n", "path": "ecommerce/extensions/order/migrations/0003_auto_20150224_1520.py"}]}