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.15.2, created at 2026-10-07 03:04 +0000
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-07 03:04 +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
11# revision identifiers, used by Alembic.
12revision = "09aba125b57a"
13down_revision = "2298bb460ffd"
14branch_labels: str | tuple[str, ...] | None = None
15depends_on: str | tuple[str, ...] | None = None
18def is_postgres():
19 return op.get_context().dialect.name == "postgresql"
22def upgrade():
23 if is_postgres(): 23 ↛ 24line 23 didn't jump to line 24 because the condition on line 23 was never true
24 op.execute("ALTER TYPE authmethod ADD VALUE 'OIDC'")
27def downgrade():
28 pass