insert into tssubjectmattertypexuse (
  tssubjectmattertypexuse_creator,
  tssubjectmattertypexuse_author,
  tssubjectmattertypexuse_tssubjectmattertype_id,
  tssubjectmattertypexuse_tssubjectmatteruse_id
)
select
  'migration 4.4.pre',
  'migration 4.4.pre',
  tssubjectmattertype_id,
  tssubjectmatteruse_id
from tssubjectmattertype, tssubjectmatteruse
where tssubjectmatteruse_techname in (
  'maintmanager',
  'maintmanager_template',
  'maintmanager_templateuse',
  'maintmanager_parent'
);
