Here's the test file I used to test whether the script worked properly for some existing Mahara primary keys, foreign keys, and unique keys. Although the XMLDB library also defines an XMLDB_KEY_FOREIGN_UNIQUE type, there aren't actually any keys of that type in Mahara, so I left that test out.
Here's the test file I used to test whether the script worked properly for some existing Mahara primary keys, foreign keys, and unique keys. Although the XMLDB library also defines an XMLDB_KEY_ FOREIGN_ UNIQUE type, there aren't actually any keys of that type in Mahara, so I left that test out.
Hm, and actually, the keys in my test script are ones that were added for https:/ /bugs.launchpad .net/mahara/ +bug/1081947 . So you'll have to install patch https:/ /reviews. mahara. org/#/c/ 2744/ before the test will all work correctly.