From 92f49a48eee6ada03ccd5a55b870bb7588c88029 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 23 Sep 2009 12:21:17 +0000 Subject: main/acf-weblog: updated the post-install script i forgot that in last commit. --- main/acf-weblog/acf-weblog.post-upgrade | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'main/acf-weblog/acf-weblog.post-upgrade') diff --git a/main/acf-weblog/acf-weblog.post-upgrade b/main/acf-weblog/acf-weblog.post-upgrade index 325f8cb320..aec1e22c4d 100644 --- a/main/acf-weblog/acf-weblog.post-upgrade +++ b/main/acf-weblog/acf-weblog.post-upgrade @@ -3,10 +3,17 @@ new=$1 old=$2 -if ! [ "$(apk version -t $old 0.4.0)" = "<" ]; then +# if current is not older than 0.4.5 we exit. +if ! [ "$(apk version -t $old 0.4.5)" = "<" ]; then exit 0 fi +psql -U postgres -c "ALTER TABLE dbhistlog ALTER logdatetime TYPE timestamp(3)"\ + webproxylog + +if ! [ "$(apk version -t $old 0.4.0)" = "<" ]; then + exit 0 +fi psql -U postgres -c "ALTER TABLE weblog ADD COLUMN shortreason text" \ webproxylog -- cgit v1.2.3