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 23ddabf
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 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,18 @@
"""Add API ID to LMSCourse"""

from alembic import op
import sqlalchemy as sa


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 23ddabf

Please sign in to comment.