LDEV-4184: "outer-join" attribute in hbm.xml files is deprecated and produces warnings on server start up. Remove entries with "auto" value. Entries with value "true" become fetch=join.
LDEV-4180: Make DB patches produce up-to-date structure during build instead of applying multiple patches.Get rid of unnecessary tables and keys.Modify boolean columns to tinyint(1)Simplify patches where possible.
LDEV-4220: When a peer review comment rating was deleted and not replaced with another comment rating, an exception was thrown as it was trying to delete the comment twice.