summaryrefslogtreecommitdiffstats
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)
downloadaports-c6d5bb9473448da3133274a4c89b2a217e357a6b.tar.bz2
aports-c6d5bb9473448da3133274a4c89b2a217e357a6b.tar.xz
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 aec1e22c..a15590cc 100644
--- a/main/acf-weblog/acf-weblog.post-upgrade
+++ b/main/acf-weblog/acf-weblog.post-upgrade
@@ -3,6 +3,20 @@
new=$1
old=$2
+# if current is not older than 0.5.4 we exit.
+if ! [ "$(apk version -t $old 0.5.4)" = "<" ]; then
+ exit 0
+fi
+
+psql -U postgres -c "ALTER TABLE weblog ALTER bytes TYPE bigint"\
+ webproxylog
+psql -U postgres -c "ALTER TABLE pubweblog ALTER bytes TYPE bigint"\
+ webproxylog
+psql -U postgres -c "ALTER TABLE blocklog ALTER bytes TYPE bigint"\
+ webproxylog
+psql -U postgres -c "ALTER TABLE pubblocklog ALTER bytes TYPE bigint"\
+ webproxylog
+
# if current is not older than 0.4.5 we exit.
if ! [ "$(apk version -t $old 0.4.5)" = "<" ]; then
exit 0