-
Improvement
-
Resolution: Fixed
-
Minor
-
3.8.0
-
-
MOODLE_38_STABLE
-
MOODLE_38_STABLE
-
Moodle App 3.8.1
As pointed out by Noel in MOBILE-3277, since the site plugins schemas aren't added to the siteSchemas object they cannot use the canBeCleared option. We aren't adding the site plugins schemas to the object because we don't want them to be created by all sites. One possible solution is to add a new calculated property in the schema to indicate that the schema should only be created on the current site or something like that.
Also, right now we're assuming that all schemas registered after the site has been created belong to site plugins, and this could change in the future. The only solution we thought of is to create a subclass of CoreSitesProvider with a different implementation of registerSiteSchema, and send that subclass to the site plugins instead of the original one.
- is blocked by
-
MOBILE-3277 Let site plugins register site schemas (DB)
- Closed