blob: 6eb73ffa2fc41e54408ae41fe02ba746ad3a8692 (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/sh
# Create a database migration, and copy it back to the host.
docker exec cheatdb_app_1 sh -c "FLASK_CONFIG=../config.cfg FLASK_APP=app/__init__.py flask db migrate"
docker exec -u root cheatdb_app_1 sh -c "cp /home/cdb/migrations/versions/* /source/migrations/versions/"
USER=$(whoami)
sudo chown -R $USER:$USER migrations/versions
|