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