Not sure, to be honest, maybe by “docker exec” into the container and running it from there:
docker exec -it <yourcontainer> /bin/bash
Or by logging in to the database and generating the necessary ALTER TABLE
commands directly in the database, as in @kohly’s example.