The code that writes out the @ATTRIBUTES and @INDEXLIST values does not correctly handle schema updates, writing out the wrong values.
(oops, testing showed this not to be the case after all)