LP#1730721: future proof build-db.sh (followup)
authorBen Shum <ben@evergreener.net>
Tue, 7 Nov 2017 20:09:47 +0000 (15:09 -0500)
committerJason Stephenson <jason@sigio.com>
Tue, 7 Nov 2017 20:30:20 +0000 (15:30 -0500)
commit73a18745da1e0a6340e84233d57f4bb42ec66d37
tree9bfb552917b677be2b7b05a34495f1ad9b3a4cf2
parent689171ab8e35da2ab7ef5e89c7e1dade3f38a753
LP#1730721: future proof build-db.sh (followup)

For PostgreSQL 10+, the versioning scheme has changed. We only want
the top number for those versions and up.

So, grab only the first two numbers for the variable...

9.6.5 = 96
10.0 = 10, etc.

Signed-off-by: Ben Shum <ben@evergreener.net>
Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/sql/Pg/build-db.sh