2021-10-13 07:37:25 +00:00
|
|
|
file1=$1
|
|
|
|
file2=$2
|
|
|
|
|
|
|
|
lines=$( git diff --no-index "$file1" "$file2" | wc -l )
|
|
|
|
if [ "$lines" -gt 0 ]; then
|
2021-09-30 12:39:48 +00:00
|
|
|
echo "There are differences in schema"
|
2021-10-13 07:37:25 +00:00
|
|
|
git diff --no-index "$file1" "$file2"
|
2021-09-30 12:39:48 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
echo "Schema is latest"
|