diff options
| author | Michael Mason <ms13sp@gmail.com> | 2009-09-08 15:05:22 +0000 |
|---|---|---|
| committer | Michael Mason <ms13sp@gmail.com> | 2009-09-08 15:05:22 +0000 |
| commit | 9356a6843bf6118ae173f6d44aa2339dec96932b (patch) | |
| tree | 8821f486f29585f5bfc1125ad2f616a8d52109ef /main/acf-weblog/acf-weblog.post-upgrade | |
| parent | 22c9c968ec4fa47425f14d4c2db529ff255740a4 (diff) | |
| parent | ceabdffa966b770cb8a44541f0571731dba55e14 (diff) | |
| download | aports-9356a6843bf6118ae173f6d44aa2339dec96932b.tar.bz2 aports-9356a6843bf6118ae173f6d44aa2339dec96932b.tar.xz | |
Merge branch 'master' of git://git.alpinelinux.org/aports
Diffstat (limited to 'main/acf-weblog/acf-weblog.post-upgrade')
| -rw-r--r-- | main/acf-weblog/acf-weblog.post-upgrade | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/main/acf-weblog/acf-weblog.post-upgrade b/main/acf-weblog/acf-weblog.post-upgrade new file mode 100644 index 0000000000..325f8cb320 --- /dev/null +++ b/main/acf-weblog/acf-weblog.post-upgrade @@ -0,0 +1,21 @@ +#!/bin/sh + +new=$1 +old=$2 + +if ! [ "$(apk version -t $old 0.4.0)" = "<" ]; then + exit 0 +fi + + +psql -U postgres -c "ALTER TABLE weblog ADD COLUMN shortreason text" \ + webproxylog +psql -U postgres -c "ALTER TABLE pubweblog ADD COLUMN shortreason text" \ + webproxylog +psql -U postgres -c "ALTER TABLE pubblocklog ADD COLUMN shortreason text" \ + webproxylog +psql -U postgres -c "ALTER TABLE blocklog ADD COLUMN shortreason text" \ + webproxylog + +exit 0 + |
