Schema update

A direct copy from the Synapse-Repository-Services project.