Skip to content

Commit

Permalink
fix: add db schema to migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Maze21127 committed Feb 29, 2024
1 parent 056f40b commit 7a87ca8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ from typing import Sequence, Union

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

# revision identifiers, used by Alembic.
Expand All @@ -17,6 +18,7 @@ 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)}

DB_SCHEMA = os.environ.get("DB_SCHEMA")

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

0 comments on commit 7a87ca8

Please sign in to comment.