Bin
2025-12-16 971a2a12c03b74dd2d7d668b9dbc599f5131bcaf
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
set -e ${DEBUG:+-x}
 
if [ -n "${POSTGRE_HOST:-}" ] || [ -n "${MYSQL_HOST:-}" ] && [ "${SKIP_DB_MIGRATIONS:-}" != "true" ]; then
  echo >&3 "=> Do database migrations..."
  python3 /label-studio/label_studio/manage.py locked_migrate >&3
  echo >&3 "=> Migrations completed."
else
  echo >&3 "=> Skipping run db migrations."
fi