mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
21 lines
448 B
Bash
21 lines
448 B
Bash
#!/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
|
|
|