Skip to content

Commit

Permalink
Fix the place of the import in the template alembic revision
Browse files Browse the repository at this point in the history
This corresponds more to pagure's coding style and pep0008

Signed-off-by: Pierre-Yves Chibon <[email protected]>
  • Loading branch information
pypingou committed Nov 14, 2018
1 parent a350617 commit e9b3b27
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions alembic/script.py.mako
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ Create Date: ${create_date}

"""

from alembic import op
import sqlalchemy as sa
${imports if imports else ""}

# revision identifiers, used by Alembic.
revision = ${repr(up_revision)}
down_revision = ${repr(down_revision)}

from alembic import op
import sqlalchemy as sa
${imports if imports else ""}

def upgrade():
${upgrades if upgrades else "pass"}
Expand Down

0 comments on commit e9b3b27

Please sign in to comment.