From b40b8c23c65f2b9578aa67ad227ade49e9448447 Mon Sep 17 00:00:00 2001 From: Marcos Prieto Date: Tue, 3 Sep 2024 17:58:23 +0200 Subject: [PATCH] Migration for assignment.lis_outcome_service_url --- ...64f6a9_assignment_lis_outcome_service_url.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lms/migrations/versions/ff2f8a64f6a9_assignment_lis_outcome_service_url.py diff --git a/lms/migrations/versions/ff2f8a64f6a9_assignment_lis_outcome_service_url.py b/lms/migrations/versions/ff2f8a64f6a9_assignment_lis_outcome_service_url.py new file mode 100644 index 0000000000..5dac3c8068 --- /dev/null +++ b/lms/migrations/versions/ff2f8a64f6a9_assignment_lis_outcome_service_url.py @@ -0,0 +1,17 @@ +"""Add the Assignment.lis_outcome_service_url column.""" + +import sqlalchemy as sa +from alembic import op + +revision = "ff2f8a64f6a9" +down_revision = "cb5fe6e8dc09" + + +def upgrade() -> None: + op.add_column( + "assignment", sa.Column("lis_outcome_service_url", sa.String(), nullable=True) + ) + + +def downgrade() -> None: + op.drop_column("assignment", "lis_outcome_service_url")