container_migrate 312 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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