diff options
author | Ted Trask <ttrask01@yahoo.com> | 2010-03-18 19:14:57 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2010-03-18 19:49:52 +0000 |
commit | c6d5bb9473448da3133274a4c89b2a217e357a6b (patch) | |
tree | dfdb1833a1d81ebc4943913f52bf78f8796e226a | |
parent | 6c08a747e94cb5a2914337f7444304ab0d3b18d3 (diff) | |
download | alpine_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-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 @@ | |||
3 | new=$1 | 3 | new=$1 |
4 | old=$2 | 4 | old=$2 |
5 | 5 | ||
6 | # if current is not older than 0.5.4 we exit. | ||
7 | if ! [ "$(apk version -t $old 0.5.4)" = "<" ]; then | ||
8 | exit 0 | ||
9 | fi | ||
10 | |||
11 | psql -U postgres -c "ALTER TABLE weblog ALTER bytes TYPE bigint"\ | ||
12 | webproxylog | ||
13 | psql -U postgres -c "ALTER TABLE pubweblog ALTER bytes TYPE bigint"\ | ||
14 | webproxylog | ||
15 | psql -U postgres -c "ALTER TABLE blocklog ALTER bytes TYPE bigint"\ | ||
16 | webproxylog | ||
17 | psql -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. |
7 | if ! [ "$(apk version -t $old 0.4.5)" = "<" ]; then | 21 | if ! [ "$(apk version -t $old 0.4.5)" = "<" ]; then |
8 | exit 0 | 22 | exit 0 |