mirror of https://github.com/zulip/zulip.git
12 lines
334 B
Bash
Executable File
12 lines
334 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
echo 'Testing whether migrations are consistent with models'
|
|
if ! ./manage.py makemigrations --check --dry-run; then
|
|
echo
|
|
echo 'ERROR: Migrations are not consistent with models! Fix with `./manage.py makemigrations`.'
|
|
echo
|
|
exit 1
|
|
else
|
|
echo "Success! Migrations are consistent with models."
|
|
fi
|