Skip to content

Commit

Permalink
Migration for LMSCourse.lti_context_memberships
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospri committed Aug 27, 2024
1 parent d7c7aa2 commit c701d55
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"""Add LMSCourse.lti_context_memberships_url."""

import sqlalchemy as sa
from alembic import op

revision = "b97080de93bc"
down_revision = "aef6a6460d0d"


def upgrade() -> None:
op.add_column(
"lms_course",
sa.Column("lti_context_memberships_url", sa.String(), nullable=True),
)


def downgrade() -> None:
op.drop_column("lms_course", "lti_context_memberships_url")

0 comments on commit c701d55

Please sign in to comment.