Skip to content

Commit

Permalink
Migration to add lms_api_course_id to LMSCourse
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospri committed Jan 8, 2025
1 parent d3d4a05 commit 315c0cf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lms/migrations/versions/cf20e70211f9_add_api_to_lmscourse.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""Add API ID to LMSCourse."""

import sqlalchemy as sa
from alembic import op

revision = "cf20e70211f9"
down_revision = "0aa54a98ad39"


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


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

0 comments on commit 315c0cf

Please sign in to comment.