prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Meta-schemas are not created properly
  It seems that a fresh installation of the most recent version does not create the meta-schemas anymore.
  
  </issue>
  <code>
  [start of oedb_datamodels/versions/5c098aa81e2c_create_schemas.py]
  1 """create schemas
  2 
  3 Revision ID: 5c098aa81e2c
  4 Revises: 46fb02acc3b1
  5 Create Date: 2017-11-23 15:53:57.716306
  6 
  7 """
  8 import sqlalchemy as sa
  9 from alembic import op
  10 
  11 # revision identifiers, used by Alembic.
  12 revision = "5c098aa81e2c"
  13 down_revision = "048215319c74"
  14 branch_labels = None
  15 depends_on = None
  16 
  17 schemas = [
  18     "demand",
  19     "economy",
  20     "emission",
  21     "environment",
  22     "grid",
  23     "boundaries",
  24     "society",
  25     "supply",
  26     "scenario",
  27     "climate",
  28     "model_draft",
  29     "openstreetmap",
  30     "reference",
  31 ]
  32 
  33 
  34 def upgrade():
  35     for s in schemas:
  36         op.execute("CREATE SCHEMA " + s)
  37 
  38 
  39 def downgrade():
  40     for s in schemas:
  41         op.execute("DROP SCHEMA " + s)
  42
  [end of oedb_datamodels/versions/5c098aa81e2c_create_schemas.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/oedb_datamodels/versions/5c098aa81e2c_create_schemas.py b/oedb_datamodels/versions/5c098aa81e2c_create_schemas.py
  --- a/oedb_datamodels/versions/5c098aa81e2c_create_schemas.py
  +++ b/oedb_datamodels/versions/5c098aa81e2c_create_schemas.py
  @@ -30,12 +30,15 @@
       "reference",
   ]
   
  -
   def upgrade():
       for s in schemas:
           op.execute("CREATE SCHEMA " + s)
  +    for s in schemas:
  +        op.execute("CREATE SCHEMA _" + s)
   
   
   def downgrade():
       for s in schemas:
  -        op.execute("DROP SCHEMA " + s)
  +        op.execute("DROP SCHEMA _" + s + " CASCADE")
  +    for s in schemas:
  +        op.execute("DROP SCHEMA " + s + " CASCADE")
  
verification_info: {"golden_diff": "diff --git a/oedb_datamodels/versions/5c098aa81e2c_create_schemas.py b/oedb_datamodels/versions/5c098aa81e2c_create_schemas.py\n--- a/oedb_datamodels/versions/5c098aa81e2c_create_schemas.py\n+++ b/oedb_datamodels/versions/5c098aa81e2c_create_schemas.py\n@@ -30,12 +30,15 @@\n     \"reference\",\n ]\n \n-\n def upgrade():\n     for s in schemas:\n         op.execute(\"CREATE SCHEMA \" + s)\n+    for s in schemas:\n+        op.execute(\"CREATE SCHEMA _\" + s)\n \n \n def downgrade():\n     for s in schemas:\n-        op.execute(\"DROP SCHEMA \" + s)\n+        op.execute(\"DROP SCHEMA _\" + s + \" CASCADE\")\n+    for s in schemas:\n+        op.execute(\"DROP SCHEMA \" + s + \" CASCADE\")\n", "issue": "Meta-schemas are not created properly\nIt seems that a fresh installation of the most recent version does not create the meta-schemas anymore.\n", "before_files": [{"content": "\"\"\"create schemas\n\nRevision ID: 5c098aa81e2c\nRevises: 46fb02acc3b1\nCreate Date: 2017-11-23 15:53:57.716306\n\n\"\"\"\nimport sqlalchemy as sa\nfrom alembic import op\n\n# revision identifiers, used by Alembic.\nrevision = \"5c098aa81e2c\"\ndown_revision = \"048215319c74\"\nbranch_labels = None\ndepends_on = None\n\nschemas = [\n    \"demand\",\n    \"economy\",\n    \"emission\",\n    \"environment\",\n    \"grid\",\n    \"boundaries\",\n    \"society\",\n    \"supply\",\n    \"scenario\",\n    \"climate\",\n    \"model_draft\",\n    \"openstreetmap\",\n    \"reference\",\n]\n\n\ndef upgrade():\n    for s in schemas:\n        op.execute(\"CREATE SCHEMA \" + s)\n\n\ndef downgrade():\n    for s in schemas:\n        op.execute(\"DROP SCHEMA \" + s)\n", "path": "oedb_datamodels/versions/5c098aa81e2c_create_schemas.py"}]}