summaryrefslogtreecommitdiffstats
path: root/main/acf-weblog/acf-weblog.post-upgrade
blob: 325f8cb3201e73521cd31cb9e37d325329897cc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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