From cbb3b7f916732b7248bcfd90fce4af2816a1aa08 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Wed, 26 Apr 2017 11:30:02 +0100 Subject: [PATCH] Minimum postgres version supported fixed in META.json --- META.json | 2 +- Makefile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/META.json b/META.json index 5d31e50..afb0a4b 100644 --- a/META.json +++ b/META.json @@ -22,7 +22,7 @@ "prereqs": { "runtime": { "requires": { - "PostgreSQL": "8.3.0" + "PostgreSQL": "9.1.0" } } }, diff --git a/Makefile b/Makefile index 445575a..e132d9f 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,7 @@ INTVERSION := $(shell echo $$(($$(echo $(VERSION) | sed 's/\([[:digit:]]\{1,\}\) EXTVERSION = $(shell grep '"version":' META.json | head -1 \ | sed -e 's/[ ]*"version":[ ]*"\(.*\)",/\1/') +# NOTE: keep consistent with META.json ifeq ($(shell echo $$(($(INTVERSION) < 901))),1) $(error $(EXTENSION) requires PostgreSQL 9.1 or later. This is $(VERSION)) endif