diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-03-22 07:10:47 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-03-22 07:10:47 +0000 |
commit | 1109f54eb91e05dd7684ee1b30bc8328a52a5005 (patch) | |
tree | ccea63ea17f60b066650891e396e109ccb822d3f /main/acf-weblog/acf-weblog.post-upgrade | |
parent | 5e1ecf7ef52c947fd7407546d7fb7586341f90ed (diff) | |
parent | 3b975a6703296ddb3986b2c2d2d2b443528b8807 (diff) | |
download | aports-1109f54eb91e05dd7684ee1b30bc8328a52a5005.tar.bz2 aports-1109f54eb91e05dd7684ee1b30bc8328a52a5005.tar.xz |
Merge remote branch 'tdtrask/master'
Diffstat (limited to 'main/acf-weblog/acf-weblog.post-upgrade')
-rw-r--r-- | main/acf-weblog/acf-weblog.post-upgrade | 14 |
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 aec1e22c4..a15590cc7 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 |