#!/bin/bash

# Check if we are in the right place
if [ ! -d ./services ]; then
    echo "You must run this command from the project's root folder."
    exit 1
fi

rosetta/shell api-gateway "cd /opt/esap-api-gateway/esap/ && source /tmp/env.sh && python3 manage.py migrate --settings=esap.settings.dev"
