Skip to content

Commit

Permalink
Format mako template
Browse files Browse the repository at this point in the history
  • Loading branch information
armanddidierjean committed Apr 12, 2024
1 parent 43e76d3 commit a5365ba
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions migrations/script.py.mako
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
"""${message}

Revision ID: ${up_revision}
Revises: ${down_revision | comma,n}
Create Date: ${create_date}

"""
from typing import Sequence, Union
from collections.abc import Sequence

from alembic import op
import sqlalchemy as sa
from alembic import op

## We need to import app for migrations involving app.utils.types.datetime.TZDateTime()
import app

${imports if imports else ""}

# revision identifiers, used by Alembic.
revision: str = ${repr(up_revision)}
down_revision: Union[str, None] = ${repr(down_revision)}
branch_labels: Union[str, Sequence[str], None] = ${repr(branch_labels)}
depends_on: Union[str, Sequence[str], None] = ${repr(depends_on)}
down_revision: str | None = ${repr(down_revision)}
branch_labels: str | Sequence[str] | None = ${repr(branch_labels)}
depends_on: str | Sequence[str] | None = ${repr(depends_on)}


def upgrade() -> None:
Expand Down

0 comments on commit a5365ba

Please sign in to comment.