Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 15 lines (12 sloc) 0.345 kB
#! /bin/bash
DJANGO_VERSION=`./sandbox/manage.py --version`
DJANGO_MINOR=${DJANGO_VERSION:2:1}
if [ ${DJANGO_MINOR} -lt 7 ];
then
echo "Running South migrations";
python sandbox/manage.py syncdb --noinput
python sandbox/manage.py migrate
else
echo "Running Django migrations";
python sandbox/manage.py migrate --noinput
fi
Jump to Line
Something went wrong with that request. Please try again.