Fixed version SQL to run on older postgres instances too.
Fixed version SQL to run on older postgres instances too.

mbeijen/otrs-1,noritnk/otrs,StCyr/otrs,linearregression/otrs,moritz/otrs,MBRG/otrs,oiami/otrs,xhoy/otrs,crythias/otrs,nilei/otrs,mburggraf/otrs,StCyr/otrs,brandonshults01/otrs,xhoy/otrs,rudy500/otrs,xhoy/otrs,balazj/otrs,moritz/otrs,crythias/otrs,eliasp/otrs,PortgasDAce/otrs,mbeijen/otrs-1,rudy500/otrs,brandonshults01/otrs,MBRG/otrs,nilei/otrs,capeit-tto/otrs,capeit-tto/otrs,vlascoder/otrs,brandonshults01/otrs,muehlbauer/otrs,s7design/otrs,crythias/otrs,vlascoder/otrs,capeit-tto/otrs,muehlbauer/otrs,PortgasDAce/otrs,MBRG/otrs,nilei/otrs,eliasp/otrs,rudy500/otrs,balazj/otrs,balazj/otrs,mburggraf/otrs,mbeijen/otrs-1,thorsteneckel/otrs,MBRG/otrs,rudy500/otrs,balazj/otrs,eliasp/otrs,oiami/otrs,s7design/otrs,moritz/otrs,PortgasDAce/otrs,StCyr/otrs,nilei/otrs,s7design/otrs,crythias/otrs,noritnk/otrs,mburggraf/otrs,linearregression/otrs,linearregression/otrs,thorsteneckel/otrs,rudy500/otrs,xhoy/otrs,oiami/otrs,linearregression/otrs,PortgasDAce/otrs,brandonshults01/otrs,vlascoder/otrs,s7design/otrs,linearregression/otrs,s7design/otrs,moritz/otrs,thorsteneckel/otrs,StCyr/otrs,crythias/otrs,moritz/otrs,mburggraf/otrs,oiami/otrs,balazj/otrs,thorsteneckel/otrs,eliasp/otrs,oiami/otrs,mburggraf/otrs,muehlbauer/otrs,PortgasDAce/otrs,noritnk/otrs,thorsteneckel/otrs,muehlbauer/otrs,eliasp/otrs,muehlbauer/otrs,MBRG/otrs,StCyr/otrs,nilei/otrs,brandonshults01/otrs,xhoy/otrs