hs.hsadmin.jee/cust-services/scripts/migratePostgresLiquibaseChangeLogToH2.sh
2017-04-13 15:15:08 +02:00

10 lines
229 B
Bash
Executable File

#!/bin/bash
mkdir -p $(dirname "$2")
sed \
-e's/ deferrable="[a-z]*" initiallyDeferred="[a-z]*"//' \
-e's/ type="INET"/ type="VARCHAR(19)"/' \
-e'/generated.69/,+5d' \
<"$1" >"$2"
# -e'/changeset.* id="generated-69"/,+5d' \