From the release notes:
An index was added to the
courseware_studentmoduletable. This can be a VERY EXPENSIVE MIGRATION which may take hours or days to run depending on size.
We’re interested to obtain some concrete data here to help with planning upgrades. What kind of ‘size’ causes runtimes of ‘hours’?