This commit is contained in:
parent
c83a4cece6
commit
bf5003844d
@ -28,10 +28,14 @@ if [[ ! -f "$migration" ]]; then
|
||||
|
||||
echo "migrate from $rev => HEAD" 1>&2
|
||||
|
||||
echo "BEGIN" > "$migration"
|
||||
echo "do language plpgsql \$migration\$" >> "$migration"
|
||||
echo "begin" >> "$migration"
|
||||
echo >> "$migration"
|
||||
migra --unsafe $base_url $head_url >> "$migration" \
|
||||
|| echo "migra exited with code $?. this is /probably/ fine" 1>&2
|
||||
echo "COMMIT;" > "$migration"
|
||||
echo >> "$migration"
|
||||
echo "end;" >> "$migration"
|
||||
echo '$migration$;' >> "$migration"
|
||||
fi
|
||||
|
||||
echo "$migration"
|
||||
|
Loading…
Reference in New Issue
Block a user