-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into canvas-factory
- Loading branch information
Showing
4 changed files
with
85 additions
and
4 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
lms/migrations/versions/0aa54a98ad39_add_start_and_end_dates_for_courses.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
"""Add start and end dates to courses.""" | ||
|
||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
revision = "0aa54a98ad39" | ||
down_revision = "02d413b4d212" | ||
|
||
|
||
def upgrade() -> None: | ||
op.add_column("lms_course", sa.Column("starts_at", sa.DateTime(), nullable=True)) | ||
op.add_column("lms_course", sa.Column("ends_at", sa.DateTime(), nullable=True)) | ||
|
||
|
||
def downgrade() -> None: | ||
op.drop_column("lms_course", "ends_at") | ||
op.drop_column("lms_course", "starts_at") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters