mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-22 06:36:14 +00:00
16 lines
311 B
Bash
16 lines
311 B
Bash
|
#!/usr/bin/env bash
|
||
|
set -e
|
||
|
|
||
|
# This check is only used for CI.
|
||
|
|
||
|
CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
|
||
|
|
||
|
cd $CWD/../
|
||
|
|
||
|
find migrations -type f -name "*.sql" -print0 | while read -d $'\0' FILE
|
||
|
do
|
||
|
TMP_FILE="/tmp/tmp_pg_format.sql"
|
||
|
pg_format $FILE > $TMP_FILE
|
||
|
diff $FILE $TMP_FILE
|
||
|
done
|