antoniop
committed
on 14 Jun 18
Make all sql in this script portable by avoiding unnecessary api