Skip to content

Commit 5d4f10c

Browse files
committed
Add migration to last_course_viewed attribute of User table
1 parent e67e43a commit 5d4f10c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lms/lmsdb/bootstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def _api_keys_migration() -> bool:
239239

240240
def _last_course_viewed_migration() -> bool:
241241
User = models.User
242-
_add_not_null_column(User, User.last_course_viewed)
242+
_migrate_column_in_table_if_needed(User, User.last_course_viewed)
243243
return True
244244

245245

0 commit comments

Comments
 (0)