Fix: [ bug #1761 ] SQL error when installing 3.7 with PostgreSQL

Fix: [ bug #1761 ] SQL error when installing 3.7 with PostgreSQL