diff options
author | Andrew Manison <amanison@byrd-vm.localdomain> | 2010-04-04 11:57:02 -0400 |
---|---|---|
committer | Andrew Manison <amanison@byrd-vm.localdomain> | 2010-04-04 11:57:02 -0400 |
commit | 8b35a9ab83a841ab17ead4606f647a3158c274fe (patch) | |
tree | c429f54931eb13ba1be1da3542614d6d63fa671b /main/acf-weblog/acf-weblog.post-upgrade | |
parent | a050ffed38a8a17b4b1e7dcb6237800e7881a137 (diff) | |
parent | 67eb88bc5458c93a481c692baa0968cf567fc3f2 (diff) | |
download | aports-8b35a9ab83a841ab17ead4606f647a3158c274fe.tar.bz2 aports-8b35a9ab83a841ab17ead4606f647a3158c274fe.tar.xz |
Merge remote branch 'alpine/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 aec1e22c4d..a15590cc73 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 |