Beta: Migrate DB schema from version 30 to 31
This is a backport of the denormalisation changes in !654 (merged) using the migration framework from !680 (merged).
Edited by akwizgran
This is a backport of the denormalisation changes in !654 (merged) using the migration framework from !680 (merged).