ALTER TABLE {$NAMESPACE}_semistructured.semistructured_objecttype
  ADD customFieldsConfig LONGTEXT NOT NULL COLLATE {$COLLATE_TEXT};

CREATE TABLE {$NAMESPACE}_semistructured.semistructured_instanceconfiguredcustomfieldstorage
  LIKE {$NAMESPACE}_user.user_configuredcustomfieldstorage;
CREATE TABLE {$NAMESPACE}_semistructured.semistructured_instancecustomfieldstringindex
  LIKE {$NAMESPACE}_user.user_customfieldstringindex;
CREATE TABLE {$NAMESPACE}_semistructured.semistructured_instancecustomfieldnumericindex
  LIKE {$NAMESPACE}_user.user_customfieldnumericindex;
