Skip to content

Commit

Permalink
Remove LMS family from the grading table, migration.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospri committed Jul 13, 2023
1 parent 5491691 commit ab80967
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions lms/migrations/versions/106d94be7705_remove_family_grading.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
"""
Remove tool_consumer_info_product_family_code from GradingInfo.
Revision ID: 106d94be7705
Revises: 973c9358b616
Create Date: 2023-07-06 11:23:10.850486
"""
import sqlalchemy as sa
from alembic import op

# revision identifiers, used by Alembic.
revision = "106d94be7705"
down_revision = "973c9358b616"


def upgrade():
op.drop_column("lis_result_sourcedid", "tool_consumer_info_product_family_code")


def downgrade():
op.add_column(
"lis_result_sourcedid",
sa.Column(
"tool_consumer_info_product_family_code",
sa.TEXT(),
autoincrement=False,
nullable=True,
),
)

0 comments on commit ab80967

Please sign in to comment.