You could probably do something like (for django):
python manage.py migrate
on pod startup. If there are no changes, it'll do nothing. If there are changes, it'll do the migration.