aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2010-03-18 19:14:57 +0000
committerTed Trask <ttrask01@yahoo.com>2010-03-18 19:49:52 +0000
commitc6d5bb9473448da3133274a4c89b2a217e357a6b (patch)
treedfdb1833a1d81ebc4943913f52bf78f8796e226a
parent6c08a747e94cb5a2914337f7444304ab0d3b18d3 (diff)
downloadalpine_aports-c6d5bb9473448da3133274a4c89b2a217e357a6b.tar.bz2
alpine_aports-c6d5bb9473448da3133274a4c89b2a217e357a6b.tar.xz
alpine_aports-c6d5bb9473448da3133274a4c89b2a217e357a6b.zip
main/acf-weblog: Updated post-upgrade for 0.5.4
-rw-r--r--main/acf-weblog/acf-weblog.post-upgrade14
1 files changed, 14 insertions, 0 deletions
diff --git a/main/acf-weblog/acf-weblog.post-upgrade b/main/acf-weblog/acf-weblog.post-upgrade
index aec1e22c4d..a15590cc73 100644
--- a/main/acf-weblog/acf-weblog.post-upgrade
+++ b/main/acf-weblog/acf-weblog.post-upgrade
@@ -3,6 +3,20 @@
3new=$1 3new=$1
4old=$2 4old=$2
5 5
6# if current is not older than 0.5.4 we exit.
7if ! [ "$(apk version -t $old 0.5.4)" = "<" ]; then
8 exit 0
9fi
10
11psql -U postgres -c "ALTER TABLE weblog ALTER bytes TYPE bigint"\
12 webproxylog
13psql -U postgres -c "ALTER TABLE pubweblog ALTER bytes TYPE bigint"\
14 webproxylog
15psql -U postgres -c "ALTER TABLE blocklog ALTER bytes TYPE bigint"\
16 webproxylog
17psql -U postgres -c "ALTER TABLE pubblocklog ALTER bytes TYPE bigint"\
18 webproxylog
19
6# if current is not older than 0.4.5 we exit. 20# if current is not older than 0.4.5 we exit.
7if ! [ "$(apk version -t $old 0.4.5)" = "<" ]; then 21if ! [ "$(apk version -t $old 0.4.5)" = "<" ]; then
8 exit 0 22 exit 0