Commit 13e204ea authored by BAIRE Anthony's avatar BAIRE Anthony
Browse files

add the container_migrate script

parent 7d8329e5
......@@ -27,7 +27,6 @@ fi
echo "CREATE DATABASE allgo CHARACTER SET 'utf8';" | mysql_cmd
# generate the missing migrations (in qualif/dev only)
# TODO: remove this when we deploy in production
if [ "$ENV" = dev ] || [ "$ENV" = qualif ] ; then
python3 manage.py makemigrations
fi
......
#!/bin/sh
set -e -x
# wait until the mysql server is ready
wait-mysql
mkdir -p /vol/cache/allgo
# generate the missing migrations (in qualif/dev only)
if [ "$ENV" = dev ] || [ "$ENV" = qualif ] ; then
python3 manage.py makemigrations
fi
# create the tables (apply the migrations)
python3 manage.py migrate
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment