We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
last_course_viewed
1 parent f40f81c commit e67e43aCopy full SHA for e67e43a
lms/lmsdb/bootstrap.py
@@ -237,6 +237,12 @@ def _api_keys_migration() -> bool:
237
return True
238
239
240
+def _last_course_viewed_migration() -> bool:
241
+ User = models.User
242
+ _add_not_null_column(User, User.last_course_viewed)
243
+ return True
244
+
245
246
def main():
247
with models.database.connection_context():
248
models.database.create_tables(models.ALL_MODELS, safe=True)
@@ -247,6 +253,7 @@ def main():
253
models.create_demo_users()
254
249
255
_api_keys_migration()
256
+ _last_course_viewed_migration()
250
257
text_fixer.fix_texts()
251
258
import_tests.load_tests_from_path('/app_dir/notebooks-tests')
252
259
0 commit comments