Skip to content

Commit d4f30d8

Browse files
feanilclaude
andcommitted
feat: Run sample_plugin migrations on tutor init
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent d56adb9 commit d4f30d8

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tutor/tutorsampleplugin/plugin.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@
3131
"RUN pip install openedx-sample-plugin",
3232
))
3333

34+
# ---------------------------------------------------------------------------
35+
# Migrations: Run sample_plugin migrations on init
36+
# ---------------------------------------------------------------------------
37+
38+
hooks.Filters.CLI_DO_INIT_TASKS.add_item((
39+
"lms",
40+
"./manage.py lms migrate sample_plugin",
41+
))
42+
3443
# ---------------------------------------------------------------------------
3544
# Frontend: Install npm package and configure the learner-dashboard slot
3645
# ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)