Coverage for opt/mealie/lib/python3.12/site-packages/mealie/alembic/versions/2024-03-10-05.08.32_09aba125b57a_add_oidc_auth_method.py: 79%
12 statements
« prev ^ index » next coverage.py v7.10.6, created at 2025-11-25 17:29 +0000
« prev ^ index » next coverage.py v7.10.6, created at 2025-11-25 17:29 +0000
1"""add OIDC auth method
3Revision ID: 09aba125b57a
4Revises: 2298bb460ffd
5Create Date: 2024-03-10 05:08:32.397027
7"""
9from alembic import op 1a
11# revision identifiers, used by Alembic.
12revision = "09aba125b57a" 1a
13down_revision = "2298bb460ffd" 1a
14branch_labels: str | tuple[str, ...] | None = None 1a
15depends_on: str | tuple[str, ...] | None = None 1a
18def is_postgres(): 1a
19 return op.get_context().dialect.name == "postgresql" 1a
22def upgrade(): 1a
23 if is_postgres(): 23 ↛ 24line 23 didn't jump to line 24 because the condition on line 23 was never true1a
24 op.execute("ALTER TYPE authmethod ADD VALUE 'OIDC'")
27def downgrade(): 1a
28 pass